I am trying to use awk to split a input file using multiple delimiters :-| . The input file is just one field and the output is 6 tab-delimited fields.
The awk below does run and works as expected until I add the third delimiter | , which gives the current output below. I am not sure what is wrong. Thank you :).
I added the output of both commands and seem to be having trouble with the | symbol in the input file. I tried to split on the | that and got an empty output. Thank you :).
Sorry didn't get you, is your output requirement is not the very first post one? As I could see your second post is having different output expected, kindly enlighten us all for this.
The desired output in post 1 is correct for some reason I am not getting that though. Maybe the original input file is corrupt, I will check. Thank you very much :).
---------- Post updated at 09:50 AM ---------- Previous update was at 09:44 AM ----------
Both commands work great, sorry I had a space in the file that was causing an issue. Thank you :).