Hi guys,
I have problem to append new data at the end of each line of the files where it takes whole value of the nth column. My expected result i just want to take a specific value only. This new data is based on substring of 11th, 12th 13th column that has comma seperated value.
My code:
awk -F "," '{print $0 "," $11 "," $12 "," $13}'
Input file id.csv:
A12345,1-4N,1-77,1-15,Name,1-77,ABC,First,John,1-77,0.1 /ser/tel 77777 0,0.1 /id 40001,0.1 /gen 111234567 0,2016-10-24 14:18:58
A67899,1-4U,1-78,1-20,Owner,1-66,XYZ,Last,Jane,1-77,0.1 /ser/web 88881 0,0.1 /ic 40002,0.1 /sac 222345678 0,2016-10-24 14:18:58
Expected Output:
A12345,1-4N,1-77,1-15,Name,1-77,ABC,First,John,1-77,0.1 /ser/tel 77777 0,0.1 /id 40001,0.1 /gen 111234567 0,2016-10-24 14:18:58,77777,/ser/tel,40001,/id,111234567
A67899,1-4U,1-78,1-20,Owner,1-66,XYZ,Last,Jane,1-77,0.1 /ser/web 88881 0,0.1 /ic 40002,0.1 /sac 222345678 0,2016-10-24 14:18:58,88881,/ser/web,40002,/ic,222345678
Thanks