Reputation: 59
cat > input
0,4880,1;1,8877,1;2,LT33A,0;3,2224,1;4,4926,1;
Output should be like below
0,4880,1
1,8877,1
2,LT33A,0
3,2224,1
4,4926,1
Can anybody help me out?
Upvotes: 0
Views: 6342
Reputation: 342363
$ echo "0,4880,1;1,8877,1;2,LT33A,0;3,2224,1;4,4926,1;" |awk -vRS=";" 'NF'
0,4880,1
1,8877,1
2,LT33A,0
3,2224,1
4,4926,1
Upvotes: 0