home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / newc_dev / newlist6.lzh / NewList6 / Scripts / Aliases next >
Text File  |  1991-12-18  |  3KB  |  74 lines

  1. ;Here are some aliases to try.
  2. ;
  3. ; dir     -  output similar to ARP dir opt s
  4. ; mrdir   -  two column dir.
  5. ; list    -  output of Commodore `list`
  6. ; ls      -  output of ls
  7. ; lsjr    -  exact output of lsjr
  8. ; stat    -  print stats of a file or dir
  9. ; example1-  compact output
  10. ; example2-  another compact output
  11. ; enter   -  recursively enters dirs.  Output like dir opt all
  12. ; script  -  basics to make a script file.  Only need to add custom format
  13. ;               ie  script >ram:script dh0:*.c -F "copy \'%P\' to ram:"
  14. ;
  15. ; find    -  Like UNIX find.  Will print exact path of files without
  16. ;            any type of headers or footers.  Note: newlist6.0 no longer
  17. ;            needs to turn off headers and footers since ONLY matching
  18. ;            files will show now.  But if you like having the path
  19. ;            expanded, find is still a useful command.
  20. ;
  21. ;            usage  find RootPath[:/]FilePattern
  22. ;               ie  find dh0:*.lzh      finds all    lzh files on dh0:
  23. ;                   find dh0:source/*.o finds all object files in dh0:source
  24. ;
  25. ;            output: Dh0:lc/examples/avail.c
  26. ;                    Dh0:lc/examples/boxomatic.c
  27. ;                    Dh0:lc/examples/cat.c
  28. ;                  
  29. ; color   -  a very cool alias.  Lots of colors and text styles.
  30. ;            Color shows off ansi sequencing to produce color, italics,
  31. ;            bold, etc.  Try this one out!
  32. ;
  33. ;            Here's some hints:
  34. ;               \e[0m  plain text          \e[30-39m  Forground color
  35. ;               \e[1m  bold  text          \e[41-49m  Background color
  36. ;               \e[3m  italic text         \e[7m      Inverse Video
  37. ;               \e[4m  underline text
  38. ;
  39. ; dirtype -  ls with filetypes!  If you use comments right, you can have
  40. ;            nice informative directories.  Simply put a filenote on each
  41. ;            file giving it a category.  Now when you dirtype, you'll
  42. ;            have a new wealth of information.  It truncates long comments
  43. ;            to 7 chars so the columns are nice and straight.
  44. ;
  45. ;            Here's an example output:
  46. ;
  47. ;            Directory of "Dh1:newlist5" on 18-Jun-91 00:10:18 AM
  48. ;             -s--rwed   Jun 18 00:06 script    2415 Aliases
  49. ;             ----rwed   Jun 09 02:33   text     353 Commodore.README
  50. ;             ----rwed   Jun 15 00:06   text   16327 NewList.doc
  51. ;             ----rwed   Jun 15 00:06   text   11410 History
  52. ;             ----rwed   Jun 09 02:33   text    2904 Times.doc
  53. ;             ----rwed   Jun 13 02:06   icon     880 Times.doc.info
  54. ;             --p-rwed   Jun 17 15:06   util   18112 NewList
  55. ;             ----rwed   Dec 31 23:59   Comm  170504 Jrcomm
  56. ;             ----rwed   Dec 31 23:59  Noise  224299 mod.klisje_paa_klisje
  57. ;            7 files - 0 dirs - 116 blocks - 54850 bytes
  58. ; Neat eh?
  59.  
  60. alias dir      nl -qsgbvy2 []
  61. alias list     nl -z []
  62. alias ls       nl -s []
  63. alias lsjr     nl -shgbF "%U %c %4b  %7s %d %n" -df "%M %2d %02h:%02n" []
  64. alias stat     nl -S []
  65. alias mrdir    nl -vgby 2 []
  66. alias script   nl -hT []
  67. alias enter    nl -Rgbv []
  68. alias example1 nl -sF " %22n  %-7s" []
  69. alias example2 nl -sF " %d   %p %c %7v  %n" -df "%02m.%02d.%02y" []
  70. alias find     nl -HhsTF "%P" []
  71. alias dirtype  nl -scF " %p   %d %6N %7.7v %n" -df "%3M %2d %02h:%02m" []
  72. alias color    nl -sgbF "\e[3;42;31m%22n \e[0m  \e[1;43;32m%p \e[0m  \e[0;32;41m%-7v\e[0m %d" -df "\e[4m%02d.%03M.%02y\e[0m \e[33m%02h:%02n:%02s\e[0m" []
  73.