ALTER File Filter version 1.11 written by Lincoln '32-bit' Jaros
alter [options] -i infile -o outfile
-l list number of matches only - no actual editing
-f string target string to search for
-r string replace string to substitute for target
-m insfile merge file to substitute for target string
-h remove entire line containing target string
-g remove all lines not containing target string
-b string string to place at beginning of each line of output
-e string string to place at end of each line or output
-j -b, -e apply to whole file instead of each line
-a hh logical AND of each character and hex hh
-w hh logical OR of each character and hex hh
-n logical NOT of each character
-k c remove comment lines starting with c
-s nn split input every nn chars and insert CR-LF
-t nn keep last nn characters of output (must use -i)
-c nn clip nn characters from end of output
-z remove Ctrl-Z end of file mark
-i infile get input from file infile (required)
-o outfile send output to file outfile (required)
-x start with blank file - no input file
-y use input file for input and output
-q quiet mode - no echo
Strings may include:
text literal text
"text" literal text
\r carriage return
\n line feed
\t tab
\b backspace
\e escape
\q double quote
\nn decimal character nn
\xhh hexadecimal character hh
This program allows search and replace editing functions
controlled from the command line.
|