home *** CD-ROM | disk | FTP | other *** search
/ The Unsorted BBS Collection / thegreatunsorted.tar / thegreatunsorted / programming / misc_programming / batnmore.z!p / INDEX2.TXT < prev    next >
Text File  |  1992-11-15  |  11KB  |  254 lines

  1. : Copyrights guarantee and other legal stuff :
  2. ==============================================
  3. I copyright these batch files, so that no-one else could copyright them and
  4. prevent me from using them. No comments about US Patent Office..
  5.  
  6. For warranty (No Warranty) please read file "WARRANTY". That's all there is.
  7. These batch files are FREEWARE, so you are free to use them for any NONPROFIT
  8. purposes. You are free to include them or parts of them in your own free work
  9. as long as I'm given appropriate credit (Not very likely, but I'd like that!).
  10. These batch files come AS-IS, you use them at YOUR OWN RISK, so please check
  11. files before running any of them. I've included my configuration so you can
  12. study them, too, in any possible situations of incompability.
  13.  
  14. Paul Valéry said: "A poem is never finished, only abandoned", and neither
  15. these batch files seem ever to be perfect.. Now I'm abandoning them to you,
  16. hope you find them, if not useful or educational, at least amusing. Enjoy!
  17.  
  18. All comments are more than welcome. Also bug fixes & reports, improvements,
  19. encouraging notes and new ideas are gladly accepted. ;-)
  20.  
  21. UNIX   is a registered trademark of AT&T corporation.
  22. MSDOS  is a registered trademark of Microsoft corporation.
  23. PC-DOS is a registered trademark of International Business Machines.
  24. 4DOS   is a registered trademark of JP Software Incorporated.
  25. Any other trademarks found here are property of their respective owners.
  26. :INDEX.TXT    - short introduction to some of these files:
  27. ==========================================================
  28. You are reading it! Hopefully with READER.BTM... Try "reader index.txt".
  29.  
  30. Short introduction to files in this distribution describing their purpose and
  31. usage. Most batch files give you info about their options and syntax with -?.
  32. :LS.BTM       - List directories and files:
  33. ===========================================
  34. ls [-aCDefFlLmrRtx24?] [file `|` directory ...]
  35.  
  36. sort    -e    by extension alphab. smallest first    -E    biggest first
  37.     -n    by name      alphab. smallest first    -N    biggest first
  38.     -s    by size      alphab. smallest first    -S    biggest first
  39.     -t    by time                oldest first    -T    newest  first
  40.     -f    force unsorted
  41.     -r    reverse all
  42. output    -C    multicolumn    (name)
  43.     -l    long listing    (name size date time attributes)
  44.     -m    comma-separated list of file names
  45.     -2    2 columns    (name size date time)
  46.     -4    4 columns    (name size)
  47.     -x    horizontal
  48.     -?    help
  49. select    -a    all        (select also hidden and system)
  50.     -D    directories
  51.     -F    files
  52.     -R    recursively list subdirectories
  53. :DF.BTM       - List free disk space:
  54. =====================================
  55. df [-a?] [drive:]
  56.     -a    check all available drives
  57.     -?    info
  58. :DUS.BTM      - List disk usage grouped by subdirectories:
  59. ==========================================================
  60. dus [-at?] [directory list]
  61.  
  62.     -a    include all files and directories (hidden, system)
  63.     -t    only grand total
  64.     -?    info
  65.  
  66. Note: Total reports total disk usage only for files it can see
  67. :DUA.BTM      - List disk usage in current directory grouped by alphabets:
  68. ==========================================================================
  69. dua
  70.  
  71. Can't handle files beginning with percent (ascii 37) or caret (ascii 94)
  72. :PRIME.BTM    - Calculate prime numbers:                
  73. ========================================
  74. prime
  75.  
  76. Three possible outputs: comma separated, space separated and columns.
  77. Default is comma-separated, others are included as REM-commented lines.
  78. :FIBO----.BTM - Calculate more or less Fibonacci numbers:        
  79. =========================================================
  80. fibonacc    The limit is 16 digits EVAL[] can handle
  81. fibos255    The limit is 255 characters on command line
  82. fibosmem    The limit is available memory
  83. :GCD-LCM.BTM  - Calculate Greatest Common Divisor and Least Common Multiplier:
  84. ==============================================================================
  85. gcd-lcm [number...]
  86.  
  87. Calculate Greatest Common Divisor and Least Common Multiplier for a group of
  88. numbers. Numbers have to be positive integers (max 16 digits).
  89. :DECOMPOS.BTM - Divide numbers into prime number factors:        
  90. =========================================================
  91. decompos number(s)
  92.  
  93. Divide numbers (max 16 digits) into prime number factors
  94. :MAN.BTM      - Read command manuals:                    
  95. =====================================
  96. man [-fk?] command
  97.  
  98.     -f    names of manpages with "command" in name
  99.     -k    names of manpages, which include "command" (need grep)
  100.     -?    help
  101.  
  102. Environment Variable EDITOR:        your preferable text editor
  103. Environment Variable MANPATH:        where to look for manual pages
  104. Defaults:                EDITOR=LIST  MANPATH=current directory
  105.  
  106. Uses fast, easy-to-use and free FastGREP 1.72 by Christopher J. Dunford.
  107. Note: reads *every* file fitting into description "command.*".
  108. :READER.BTM   - Read text files with on-screen indexes:
  109. =======================================================
  110. reader textfile.txt
  111.  
  112.     -a    create index in alphabetical order
  113.     -d    delete index after use
  114.     -f    force creating new index
  115.  
  116. Let's you read special formatted text files via on-screen index. Originally
  117. intended as JARGON 2.9.10 interface, but was a little bit too slow... B-)
  118.  
  119. File format:
  120.  - mark title lines with colon at the beginning
  121.  - lines has to be ECHOable: avoid quotes, percents, carets, redirection chars
  122. :READ.BTM     - Read Jargon File 2.9.10:                
  123. ========================================
  124. read key_word
  125.  
  126. Read Jargon File 2.9.10 with a minimal 4dos interface. Great fun!
  127. Note: should always give key_word to avoid memory trashing.
  128. :RM.BTM       - Remove files and directories:
  129. =============================================
  130. rm [-firv?] file `|` directory ...
  131.  
  132.     -f    Force removal: hidden/read-only/system
  133.     -i    Interactive: ask permission before removing
  134.     -r    Recursive removal: only normal files, check -f option
  135.     -v    Verbose: tell what's happening
  136.     -?    help
  137. :CHMOD.BTM    - Change file and directory attributes:
  138. =====================================================
  139. chmod [-`|`+`|`=] [adhprRsv?] [file `|` directory ...]
  140.  
  141.     -    remove attributes
  142.     +    add attributes
  143.     =    set attributes
  144.  
  145.     a    archive attribute
  146.     h    hidden attribute
  147.     r    read-only attribute
  148.     s    system attribute
  149.  
  150.     d    also directories
  151.     p    pause after each full screen
  152.     R    recursive
  153.     v    verbose
  154.     ?    info
  155.  
  156. Without options you see current attributes for selected file(s) `|` dir(s).
  157. :EVALUATE.BTM - Evaluate average execution time for a command:
  158. ==============================================================
  159. evaluate command number
  160.  
  161. Runs command number times, creates a log file and calculates average running
  162. time. It's presumed no command runs over an hour. If command needs arguments,
  163. place that command in quotation marks.
  164.  
  165. Example:    evaluate "df -a" 10
  166.  
  167. Note: trouble with DOS redirection characters...
  168. :CAESAR.BTM   - Caesar Cipher, by default ROT13:
  169. ================================================
  170. caesar -key string`|`filename
  171.  
  172.     -key    integer (1..26) for key rotation
  173.  
  174. One of the simplest and oldest encryption methods: Caesar Cipher.
  175. Default key is 13, when Caesar Cipher is also known as Rot13.
  176.  
  177. Input can be a string on command line or a file. If input has single quotes,
  178. double quotes or percent characters, it *has* to be in a file.
  179.  
  180. For files it uses pre4rot.exe filter (c code included) to place 4DOS escape
  181. character (by default ctrl-x) in front of single quote, double quote and
  182. percent characters. Creates temperature file in TEMP drive/directory.
  183. :CTRL-L.BTM   - clear screen and preserve command line as it is:
  184. ================================================================
  185. ctrl-l
  186.  
  187. Toggles unixlike CONTROL-L behaviour ON/OFF. When ON clears screen and
  188. restores command line as it was. Must be disabled, when using a program
  189. that uses Control-L. Needs full ANSI.SYS-compatible screen driver.
  190. :FILE.BTM     - identify files by their extension:
  191. ==================================================
  192. file filename(s)
  193.  
  194. Identifies files by their extension; naturally it's only a guess, but better
  195. than nothing. Needs DOS's external FIND command or your favourite GREP clone
  196. and a database file.
  197.  
  198. Database file format: one file extension and its description per line.
  199. Line format: .extension (max 3 chars) TAB description (max 63 chars). NO COMMAS.
  200. :FACTORIA.BTM - calculate factorial:
  201. ====================================
  202. factoria number(s)
  203.  
  204. Calculate factorial for numbers 0 - 18
  205. :EXTENSIO.TXT - database of DOS filename extensions:
  206. ====================================================
  207. *** All trademarks found here are property of their respective owners. ***
  208.     902 DOS filename extensions and their explanation. (15-Nov-1992)
  209.  
  210. If you want to use this file with 4DOS (eg. with FILE.BTM), there *cannot*
  211. be any commas in this database file.
  212.  
  213. The source for this collection was hundreds of manuals, my own experience,
  214. a couple Internet FAQs, news articles and fellow net.users. Many thanx all!
  215. :PRE4ROT.EXE - filter to add 4DOS escape character:            
  216. ===================================================
  217. A filter that adds 4DOS escape character in front of single quotes, double
  218. quotes and procent characters. Used by CAESAR.BTM. Escape character is hard
  219. coded as control-x. C source code in at the end of CAESAR.BTM file.
  220. :DEC2ROMA.BTM - convert decimal numbers to Roman numeric system
  221. ===============================================================
  222. dec2roman [number ...]
  223.  
  224. Convert a decimal number to the Roman numeral system.
  225.  
  226.     I       1    For example: 1992 - MCMXCII
  227.     V       5
  228.     X      10
  229.     L      50
  230.     C     100
  231.     D     500
  232.     M    1000
  233. :PMMMLCG.BTM  - Park & Miller random number generator            
  234. =====================================================
  235. Prime Modulus M Multiplicative Linear Congruential Generator based on Park &
  236. Miller article "Random Number Generators: Good Ones Are Hard to Find" CACM
  237. October 1988, Vol 31, No. 10. Original algorithm updated by Mr. Park, this
  238. version modified by yours truly (seems to work, still...).
  239.  
  240. Shows numbers between 1 and limit-1, which you can give as argument.
  241. :MAKEDESC.BTM  - Create a _DESC.BTM file for current directory        
  242. ==============================================================
  243. Creates a _DESC.BTM file to describe files in current directory.
  244.  
  245.     -a    automatic creation from descript.ion file
  246.     -d    directory descriptioning included
  247.     -e    edit descriptions before creating _desc.btm file
  248.     -i    ignore missing descriptions
  249.     -?     this info
  250.     
  251. Note:    There _cannot_ be any commas, DOS redirection characters, percents
  252.     or quotes in descript.ion file! Use _echoable_ descriptions.
  253. Note:    4desc 1.2 is great utility written by David Frey and Tom Bowden.
  254.