glennstewart
asked on
Simply awk/sed solution required - Split a file on fields - additional question
This is an extension of a previously asked question, so should be fairly easy.
Please refer to:
https://www.experts-exchange.com/questions/21763311/Simply-awk-sed-solution-required-Split-a-file-on-fields.html
The solution provided by Ozo worked exactly as per my specified input.
Unfortunately I tried against some other 'possible' input, and the awk script provided an error. Certainly my fault for not being specific enough, so here is another question.
This awk script in the above question relies on the very first line starting with "||".
The error otherwise is:
awk: can't open file
record number 1
Any suggestions? If there is output prior to the first "||" line, I am happy for this to be output to a dummy file (even /dev/null would probably be fine).
Please refer to:
https://www.experts-exchange.com/questions/21763311/Simply-awk-sed-solution-required-Split-a-file-on-fields.html
The solution provided by Ozo worked exactly as per my specified input.
Unfortunately I tried against some other 'possible' input, and the awk script provided an error. Certainly my fault for not being specific enough, so here is another question.
This awk script in the above question relies on the very first line starting with "||".
The error otherwise is:
awk: can't open file
record number 1
Any suggestions? If there is output prior to the first "||" line, I am happy for this to be output to a dummy file (even /dev/null would probably be fine).
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER