Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- awk 'BEGINFILE{print FILENAME}1' filename
- awk '{print FILENAME}' filename #or
- awk 'BEGIN{print FILENAME}' filename
- FILENAME A pathname of the current input file.
- Inside a BEGIN action the value is undefined. (...)
Add Comment
Please, Sign In to add comment