home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / DIR / FW_LS2.ZIP / READ.ME < prev   
Encoding:
Text File  |  1991-04-07  |  2.6 KB  |  71 lines

  1.  
  2. This version of 'ls' is extremely compatible with Un*x (SVR3.2) as
  3. I understand it, and still provides a couple of useful extensions
  4. for MS-DOS and OS/2.
  5.  
  6. Two versions are included, LS.DOS for MS-DOS and LS.OS2 for OS/2.
  7. Rename the one you need to LS.EXE.  I tried to build a version that
  8. would run on both systems, but there is a painful difference in
  9. their directory access mechanisms related to recursive traversal
  10. of directories.  Ptui.
  11.  
  12. Both versions recognizes 'sh'-style filename patterns, and can
  13. even handle things like:
  14.     ls -lt c:/src/*/makefile
  15. Backslashes quote only (') and ("), otherwise they are passed through
  16. unchanged.  Both single and double quotes are recognized.
  17.  
  18. Two popular forms of passing long command lines are supported:
  19.  MKS arguments:
  20.     Arguments passed in the environment (as ~arg) are collected
  21.     into a command line (maximum 4096 bytes).
  22.  4DOS arguments:
  23.     The environment variable CMDLINE, if found, is used as the
  24.     actual command line.
  25.  
  26. The expansion of filename patterns is not performed until after the
  27. correct command line is found.  This is handy for shells or other
  28. tools that wish to pass long command lines without performing the
  29. expansion themselves (more important in other tools than here).
  30.  
  31. The documentation is provided in two forms:  LS.DOC and LS.MAN.  The
  32. first is the plain ASCII version of the second, which is formatted
  33. with backspaces and overstrikes for printing or viewing with LESS,
  34. or some other clever pager.  The program also responds to a '-h'
  35. argument by writing an expanded usage message to the standard
  36. output.  Like so:
  37.  
  38. ls.exe - list directories
  39. Copyright (c) 1991  Frank Whaley  All rights reserved.
  40. Usage : ls [-aAbcCdfFghilmnopqrRstux] [filename]...
  41.  -a: show all files, even those normally hidden
  42.  -A: show all files except . and ..
  43.  -b: show non-graphic chars as \ddd
  44.  -c: use creation time
  45.  -C: multi-column output, sorted vertically
  46.  -d: treat directories as plain files
  47.  -f,-g,-i: not supported
  48.  -F: mark directories with '/' and executables with '*'
  49.  -h: display this message
  50.  -l: long listing format
  51.  -m: stream output, separated by commas
  52.  -n,-o: not supported
  53.  -p: mark directories with '/'
  54.  -q: show non-graphic chars as ?
  55.  -r: reverse order of sort
  56.  -R: recurse through sub-directories
  57.  -s: display size
  58.  -t: sort by time stamp
  59.  -u: use last access time
  60.  -x: multi-column output, sorted horizontally
  61.  
  62. As the programs and documentation say, they are copyrighted material
  63. but are freely distributable.
  64.  
  65. Bugs, comments or even insults can be mailed to:
  66.  
  67. Frank Whaley
  68. Software Engineer
  69. Gupta Technologies
  70. few@gupta.com
  71.