I need to run the same
awk
function over an entire directly of files.
This is the
awk
:
awk '{$(NF+1)=1}1'
Is there a way that I can run this command once over all of the files, along the lines of:
awk '{$(NF+1)=1}1' *
so that I do not have to run this several times?
My main concern is how to output the results with a unique outfile name?