home *** CD-ROM | disk | FTP | other *** search
/ Internet Standards / CD1.mdf / dostools / strpcrlf.doc < prev    next >
Text File  |  1994-01-30  |  3KB  |  78 lines

  1.  
  2.                                StripLF
  3.                                ═══════
  4.  
  5.         (c) Copyright 1990,92 by Klaus Hartnegg, D-7835 Teningen
  6.  
  7.  
  8.  
  9. Description
  10. ───────────
  11. This programs is part of my CRLF package. It simply strips all
  12. carriage return or line feed characters out of a text-file. This is
  13. useful when transferring a file to a mainframe computer where lines of
  14. text are separated by line feed or carriage return only. On MS-DOS
  15. text lines are ended with a Cr Lf pair.
  16.  
  17.  
  18. Usage
  19. ─────
  20. Either specify one or two file names or use the program as a filter
  21. (piping the text through). If you specify one file name only, this
  22. file will be overwritten with the modified text.
  23.  
  24. You have to specify the character to be removed as option: either /CR
  25. or /LF (of course -cr and -lf will work too). You can specify the
  26. option anywhere on the command line.
  27.  
  28. If you don't want to specify this option all the time, issue these two
  29. commands to create two small batch files StripCR and StripLF:
  30.  
  31.    ECHO strpcrlf %1 %2 /cr >stripcr.bat
  32.    ECHO strpcrlf %1 %2 /lf >striplf.bat
  33.  
  34. Note however that DOS does not allow to use batch files as filters.
  35. If you want to pipe a file through such a batch file, you have
  36. to use this construction:  type test.txt | command /c stripcr
  37. instead of                 type test.txt | stripcr
  38. of course you can also use type test.txt | strpcrlf /cr
  39.    
  40. This is a restriction of DOS, not one of StrpCrLf.
  41.  
  42.  
  43. Known Bugs
  44. ──────────
  45. Processing a file with both /cr and /lf in sequence will make it
  46. nearly unreadable, also this conversion is irreversible!
  47.  
  48.  
  49. Licence
  50. ───────
  51. As pointed out in the documentation to the CRLF package (in the file
  52. CRLF.DOC), this program is shareware. You are free to distribute it
  53. as long as all files of this package are distributed together.
  54. You are allowed to try these programs without paying for a maximum
  55. of 14 days. If you continue to use them, you must register for usage.
  56. See the separate file ORDER.FRM.
  57.  
  58. You don't need a separate licence for StripCrLf:
  59. the program will accept the same key-file as CrLf.
  60.  
  61.  
  62.  
  63. ────────────────────────────
  64.  
  65.    Klaus Hartnegg
  66.    Kleist-str. 7
  67.    D-7835 Teningen
  68.    Germany
  69.  
  70.  
  71. This software is under development. Error reports and other comments are
  72. welcome. Please do not hesitate to use electronic mail for communication.
  73. (these addresses may be valid only until end of 1992)
  74.  
  75. Bitnet   : hartnegg@dfrruf1
  76. Internet : hartnegg@ibm.ruf.uni-freiburg.de
  77.  
  78.