how to get from a file exactly what i want in linux?
I have: 123456789012,refid2141,test1,test2,test3
and i want this: 123456789012 or 123456789012 test3
>Solution :
$ echo "123456789012,refid2141,test1,test2,test3" | awk -F "," '{print $1}'
123456789012
$ echo "123456789012,refid2141,test1,test2,test3" | awk -F "," '{printf("%s, %s", $1,$5)}'
123456789012, test3