home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / dirutl / ks_ls.arc / LS.DOC < prev    next >
Internet Message Format  |  1988-10-18  |  2KB

  1. From: sweet%kelvin@s3dawn.ARPA (Kevin Sweet)
  2.  
  3. This is a public domain implementation of the `ls' routine command
  4. similar to the one available under 4.xBSD.
  5.  
  6. It was written by Kevin Sweet and released to the public domain 1988.
  7. (This manual by Rahul Dhesi, obtained by slightly revising the
  8. electronic message that accompanied this software.)
  9.  
  10. This software was written using the Turbo C v1.5(c) compiler under
  11. MS-DOS v3.3(c). The syntax is nearly identical with that found on UNIX
  12. systems with the exception that options that do not apply in an MSDOS
  13. environment are not supported, directory entry sizes are not reported,
  14. and three new options have been added (PSZ).  In addition, two compile
  15. time options exist (SIZE_CL, DOT_AL-- see comment in source code).
  16.  
  17. compile with: tcc -ms -f- -Z -O -G -k -N ls 
  18.  
  19.  
  20. ls - list the contents of a directory in alphabetical order
  21.  
  22. usage:    ls [-1CFPRSZadflrst] name ...
  23.  
  24. options:
  25. -1    list in one column format
  26. -C    list in multi-column format (default)
  27. -F    directories are marked with a trailing '\', system files are marked
  28.     with a trailing '@' and executable files are marked with a trailing '*'
  29. -P    print the directory name before listing
  30. -R    recursively list subdirectories
  31. -S    sort by file size in bytes (cluster size if option 's' is selected)
  32. -Z    list full pathnames in one column for input to Zoo
  33. -a    list all entries including hidden and system files
  34. -d    list directories as if they were a normal file
  35. -f    do not sort (list in the order files appear in the directory)
  36. -l    list in long format ([size in clusters,] mode, size, date, name)
  37. -r    reverse the order of the selected sort
  38. -s    list the file size in clusters
  39. -t    sort by time
  40.  
  41. ls parses the environment variable LS for options before parsing the
  42. command line.  Options may be turned off with a trailing '-' (e.g.
  43. "ls -1F-s" turns on the '1' and 's' options and turns off the 'F'
  44. option).
  45.