ALTER File Filter version 1.02 written by Lincoln Jaros
alter [options] < infile > outfile
-z remove Ctrl-Z end of file mark
-l list number of matches only - no actual editing
-i infile get input from file infile
-o outfile send output to file outfile
-f string target string to search for
-r string replace string to substitute for target
-b string string to place at beginning of output
-e string string to place at end of output
-s nn split input every nn chars and insert CR-LF
-c nn clip nn characters from end of output
-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
Strings may include:
text literal text
"text" literal text
\r carriage return
\n line feed
\t tab
\b backspace
\e escape
\nn decimal character nn
infile input file (defaults to keyboard)
outfile output file (defaults to screen)
This program allows search and replace editing functions
controlled from the command line.
|