@echo off :: filename: minit.btm :: author: Eric Pement :: date: 2018-06-25 21:24 EST :: :: purpose: This batch file gives better brief summary than MINITRUE does, :: but for the complete details, type "mtr -?" if "%1" eq "/?" .OR. "%1" eq "--help" .OR. "%1" eq "-?" goto help mtr %$ goto end :help TEXT minit.btm (wrapper for mtr.exe) - USAGE SUMMARY as a file pager: mtr file1 file2... - "regex" # pattern to locate as a grep search tool: mtr -ro# afn1 - "reg\.exp" # -Recurse, number lines to stdout as a replacement tool: mtr afn1 afn2... - "find" = "repl" # prompted replace in pager mtr -nr afn1 ... - "find" = "repl" # -No prompt, -Recurse, change files mtr -no+ file1 - "find" = "repl" # -o+ = send results to stdout (sed) Switches: -a All files -w Whole words only -r Recurse dirs -c case ignore -y skip bin files -tTABSIZE set Tab size -e ignore errors -@:FILE input filename -v set Video mode -h hex mode -b make Backups -x use regexes -k keep stats -d keep prev Datestamps -z unZip files -mNUM top Margin -f Fold lines @ wd breaks -u boolean zone -o use stdout -i:FILE input strings file -p:SET define printing chars -q quiet mode -l make Log file -s fast Scroll -n No prompting -? (tutorial) or --help Defaults: -c Case-insensitive matching ON (use -c- to disable) -x Regex matching ON (use -x- to disable) -b Numbered backups ON (use -b- to disable) ENDTEXT iff defined MINITRUE then echo Env var MINITRUE=%MINITRUE% endiff TEXT Escape chars are always active, even if regexes are disabled with -x- : \a BEL ^G ³ \n NL ^J ³ \xHH hex value, 0xHH \e ESC ^[ ³ \r CR ^M ³ \NNN octal value (also \N and \NN) \f FF ^L ³ \t TAB ^I ³ \b If -x, wordbreak. Use [\b] for BS \z nil ("") ³ \\ backslash ³ \b If -x-, backspace ^H. ENDTEXT :end