home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / awk / awk320.zip / FN.AWK < prev    next >
Text File  |  1990-02-08  |  260b  |  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.