Guest User

Untitled

a guest
Oct 21st, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. awk 'BEGINFILE{print FILENAME}1' filename
  2.  
  3. awk '{print FILENAME}' filename #or
  4. awk 'BEGIN{print FILENAME}' filename
  5.  
  6. FILENAME A pathname of the current input file.
  7. Inside a BEGIN action the value is undefined. (...)
Add Comment
Please, Sign In to add comment