Help with using sed, awk, nawk or tr
Posted: Thu Jan 05, 2006 3:20 pm
Here's the situation..... I have an input file which contains rows of data that look something like the following -
Each field is separated by a "|" delimiter. Each field contains a set of coordinates (not essential) and data. Without using UV BASIC I want to remove all coordinate data from each field of every row of incoming data so the above row when output would look like the following -
I would like to do this via unix with either the sed, awk, nawk or tr command or whatever would work.
Any ideas?
Thanks,
Code: Select all
[1,0]3009|[1,1]502|[1,2]PI Svc Timeliness|[1,3]2005|[1,4]11|[1,5]AF|[1,6]EPIR|[1,7]New Business|[1,8]10|[1,9]10|[1,10]1000|[1,11]980
Code: Select all
3009|502|PI Svc Timeliness|2005|11|AF|EPIR|New Business|10|10|1000|980
Any ideas?
Thanks,