I have a folder full of text files named 000.txt to 181.txt. How can I process all of them with the same awk script (program.awk)  and send them to their respective output files (output000.txt - output181.txt)?
Multiple input files and output files in awk
bash;shell;awk;perl;gawk
for f in ???.txtdo    awk -f program.awk $f > output$fdonewill process all files whose names are three characters (any characters)followed by .txt. To restrict it to only files whose namesare three digits followed by .txt, usefor f in [0-9][0-9][0-9].txt