would like to print filename with awk on Linux / Unix-like system. How do I print filename in BEGIN section of awk? Can I print the name of the current input file using gawk/awk?
ow do I use awk pattern scanning and processing language under bash scripts? Can you provide a few examples?