unix2dos - UNIX to DOS text file format converter


SUBMITTED BY: Guest

DATE: June 6, 2014, 9:15 a.m.

FORMAT: Text only

SIZE: 2.5 kB

HITS: 3241

  1. NAME
  2. unix2dos - UNIX to DOS text file format converter
  3. SYNOPSYS
  4. unix2dos [options] [-c convmode] [-o file ...] [-n infile outfile ...]
  5. Options:
  6. [-hkqV] [--help] [--keepdate] [--quiet] [--version]
  7. DESCRIPTION
  8. This manual page documents unix2dos, the program that converts text files in UNIX format to DOS format.
  9. OPTIONS
  10. The following options are available:
  11. -h --help
  12. Print online help.
  13. -k --keepdate
  14. Keep the date stamp of output file same as input file.
  15. -q --quiet
  16. Quiet mode. Suppress all warning and messages.
  17. -V --version
  18. Prints version information.
  19. -c --convmode convmode
  20. Sets conversion mode. Simulates unix2dos under SunOS.
  21. -o --oldfile file ...
  22. Old file mode. Convert the file and write output to it. The program default to run in this mode. Wildcard names may be used.
  23. -n --newfile infile outfile ...
  24. New file mode. Convert the infile and write output to outfile. File names must be given in pairs and wildcard names should NOT be used or you WILL lost your files.
  25. EXAMPLES
  26. Get input from stdin and write output to stdout.
  27. unix2dos
  28. Convert and replace a.txt. Convert and replace b.txt.
  29. unix2dos a.txt b.txt
  30. unix2dos -o a.txt b.txt
  31. Convert and replace a.txt in ASCII conversion mode. Convert and replace b.txt in ISO conversion mode.
  32. unix2dos a.txt -c iso b.txt
  33. unix2dos -c ascii a.txt -c iso b.txt
  34. Convert and replace a.txt while keeping original date stamp.
  35. unix2dos -k a.txt
  36. unix2dos -k -o a.txt
  37. Convert a.txt and write to e.txt.
  38. unix2dos -n a.txt e.txt
  39. Convert a.txt and write to e.txt, keep date stamp of e.txt same as a.txt.
  40. unix2dos -k -n a.txt e.txt
  41. Convert and replace a.txt. Convert b.txt and write to e.txt.
  42. unix2dos a.txt -n b.txt e.txt
  43. unix2dos -o a.txt -n b.txt e.txt
  44. Convert c.txt and write to e.txt. Convert and replace a.txt. Convert and replace b.txt. Convert d.txt and write to f.txt.
  45. unix2dos -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt
  46. DIAGNOSTICS
  47. BUGS
  48. The program does not work properly under MSDOS in stdio processing mode. If you know why is that so, please tell me.
  49. AUTHOR
  50. Benjamin Lin - ( blin@socs.uts.edu.au )

comments powered by Disqus