AWK print

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

AWK print

bill rowe
I'm trying one of the file splitting examples on raspbian and having a problem with the print file name

awk '/START  JOB/{x="F"++i;}{print >x;}'
gives me
awk: cannot open "" for output (No such file or directory)
Reply | Threaded
Open this post in threaded view
|

Re: AWK print - SOLVED

bill rowe
ok.  found i had text before the first start signal.  Thanks for the examples and explanations.