Trying to combine data into one line where some fields match.

```
12345,this,is,one,line,1
13567,this,is,another,line,3
14689,and,this,is,another,6
12345,this,is,one,line,4
14689,and,this,is,another,10

```

Output

```
12345,this,is,one,line,1,4
13567,this,is,another,line,3
14689,and,this,is,another,6,10

```

Thanks