Hello,
I have a spooled SQL file that I need to separate the fields delimited by pipes using awk or sed. There can be leading and trailing spaces in between pipes. How can I just extract the field itself and not any spaces.
For example, file(line) looks like:
01 | I | am | stuck |on| this.
field1=01
field2=I
field3=am
field4=stuck
field5=on
field6=this.
Any help would be appreciated. Thanks.
Jason
I have a spooled SQL file that I need to separate the fields delimited by pipes using awk or sed. There can be leading and trailing spaces in between pipes. How can I just extract the field itself and not any spaces.
For example, file(line) looks like:
01 | I | am | stuck |on| this.
field1=01
field2=I
field3=am
field4=stuck
field5=on
field6=this.
Any help would be appreciated. Thanks.
Jason