How to print filename with awk on Linux / Unix

How to print filename with awk on Linux / Unix

I 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?

The post How to print filename with awk on Linux / Unix appeared first on nixCraft.

Halal Vitamins

Powered by WPeMatico

Leave a Reply

Your email address will not be published. Required fields are marked *