STRP - strip optional things from lines of a file.

Syntax:

strp infile [>outfile] [options]
(+|-)lineNumbers (-)   (+|-)Case
(+|-)Blanks (+)        (+|-)Sequencenumbers (+)

Examples:

strp prog
strp prog >outprog
strp prog >prog
strp prog >outprog -b -ln
strp prog -s
strp <prog >outprog -b

Options:

-Blanks
removes trailing blanks.
+Blanks
keeps trailing blanks.
-Case
translates lines to lowercase.
+Case
translates lines to uppercase.
-lineNumbers
removes leading line numbers. This is the default if no other options are specified.
+lineNumbers
keeps leading line numbers. This is the default if any of the other options is specified.
-Sequencenumbers
chops lines after column 72.
+Sequencenumbers
keeps sequence numbers.

Description:

STRP normally removes leading line numbers from a file. Output goes to the standard output. If no input file is specified (either by filename or redirection), STRP reads input from the terminal; to indicate the end of input, press BREAK or hold down CTRL and press "\". If you want to enter input from the terminal, you must redirect output to a file.

If the input and output file names on the command line are the same, STRP starts by copying the original file contents into a file named "fc*lu". STRP then processes the file contents and writes the results into the original file.

See Also:

expl uppercase

expl lowercase

Copyright © 1996, Thinkage Ltd.