Hi all,
I need to extract the Particular string from the whole word,the input file is :
123,345,aaaa,555,....,....
I need all the record from 345 so i need to eliminate the first record.
Output:
345,aaa,5555,....,.....,.....
Thanks in advance.
Hi all,
I need to extract the Particular string from the whole word,the input file is :
123,345,aaaa,555,....,....
I need all the record from 345 so i need to eliminate the first record.
Output:
345,aaa,5555,....,.....,.....
Thanks in advance.
hi
Try this one.
echo "123,345,aaaa,555,....,...." | sed 's/.*345,\(.*\)/\1/'
Thanks..for ur help.
If your second field is not static, then you can delete up to and including the first comma with:
echo "123,345,aaaa,555,....,...." | sed 's/[^,]*,//'
345,aaaa,555,....,....