home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / textfilt.zip / line.txt < prev    next >
Text File  |  1995-04-05  |  2KB  |  61 lines

  1. LINE v1.3 - print specified line in a file
  2. ==========================================
  3.   Initial version by Paul Gallagher 1995.
  4.  
  5. This REXX script is hereby placed in the public domain. Any changes
  6. should be adequately documented, and authorship notices of prior
  7. versions retained. As a courtesy, please e-mail modified files to
  8. previous authors.
  9.  
  10. Contents of this file:
  11.   * Version History
  12.   * Contacting the authors
  13.   * System Requirements
  14.   * About LINE
  15.   * Using LINE
  16.  
  17. Version History
  18. ===============
  19.  
  20. 95.03.09 : v1.3
  21.   - initial release, published in EDM/2 Vol 3 No 3
  22.     "REXX, the developer's best friend"
  23.  
  24. Contacting the Authors
  25. ======================
  26. Paul Gallagher: Internet (paulpg@ibm.net)
  27.                 Telephone: +61-3-566-1023.
  28.  
  29. System Requirements
  30. ===================
  31. LINE requires REXX to be properly installed on your system. 
  32.  
  33. About LINE
  34. ==========
  35. This is the good old "print line number x" program (it actually prints line
  36. "x" and the 3 lines before and after).
  37.  
  38. Using LINE
  39. ==========
  40. Getting help:
  41.        LINE /?
  42.  
  43. Usage:
  44.        LINE n
  45. Where:
  46.        n is the targetted line number
  47.  
  48. Prints a specified line number, along with the preceeding and following
  49. 3 lines of a file that is piped into the standard input stream
  50.  
  51. Example:
  52.  
  53.        [C:\]type config.sys | line 5
  54.         2: PROTSHELL=C:\OS2\PMSHELL.EXE
  55.         3: SET USER_INI=C:\OS2\OS2.INI
  56.         4: SET SYSTEM_INI=C:\OS2\OS2SYS.INI
  57.        *5: SET OS2_SHELL=C:\OS2\CMD.EXE
  58.         6: SET AUTOSTART=TASKLIST,FOLDERS,LAUNCHPAD
  59.         7: SET RUNWORKPLACE=C:\OS2\PMSHELL.EXE
  60.         8: SET COMSPEC=C:\OS2\CMD.EXE
  61.