home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / TEXT / UTILITY / AWK320.ZIP / FN.AWK < prev    next >
Encoding:
Text File  |  1990-02-07  |  260 b   |  14 lines

  1. # print each line with the record number
  2. # the record number within the file
  3. # and the filename
  4. # separate each file with a blank line
  5.  
  6. FILENAME != prev {
  7.     printf "\n\n"
  8.     prev = FILENAME
  9. }
  10. {
  11.     print NR, FNR, FILENAME, substr($0, 1, 60)
  12. }
  13.  
  14.