jakdelirious
Programmer
Hi,
Anyone know how to output each awk 'print' statements into an individual file? Thus a new file should be created each time for each print output. I can't seem to create this file with incrementing filenames. Eg:
footxt.1
footxt.2
footxt.3
cat foo|nawk '{print $0 > "footxt."$FNR}' didn't work for me.
Jak
Anyone know how to output each awk 'print' statements into an individual file? Thus a new file should be created each time for each print output. I can't seem to create this file with incrementing filenames. Eg:
footxt.1
footxt.2
footxt.3
cat foo|nawk '{print $0 > "footxt."$FNR}' didn't work for me.
Jak