home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / CONVERT.ZIP / CONVERT.DOC < prev    next >
Text File  |  1991-11-16  |  1KB  |  26 lines

  1. Converts text files between UNIX LF-only format and DOS CR/LF format
  2. (either direction).
  3.  
  4. Program is self-documenting.  Run with no parameters for help screen.
  5. However:
  6.     convert <direction> <input file> [<output file>]
  7.  
  8. <direction> is -u for converting to UNIX format.  It is -p or -d or -o
  9. for converting to PC-DOS-OS/2 format.
  10.  
  11. <input file> is required.  <output file> is optional; if not specified
  12. then <input file> is replaced by the converted file.
  13.  
  14. Timestamps are preserved on converted files.  Long file names are allowed.
  15.  
  16. The makefile is set up for compilation with CL386 but the .EXE file was
  17. compiled with CL and bound to create a family mode program.
  18.  
  19. If you run this program over anything other than a text file it is
  20. guaranteed to scrog the file, probably in an irreversable way.  Maybe
  21. someone would like to add a sanity check.  Suggestion:  check first few
  22. hundred bytes to ensure that all characters are those which one might
  23. reasonably expect to find in a text file.  Such characters would include
  24. all ASCII characters between 0x20 and 0x7E, CR, LF, maybe FF, and the
  25. line/box-drawing set.
  26.