STRIPPER is a FORTRAN90 program which carries out some simple modifications to a file.
It even knows a little bit about special kinds of files, such as "FORTRAN", "C" or "C++" source codes. STRIPPER can delete control characters, capitalize all characters, extract the fifth word from every line, write out only columns 10 through 50, copy only the lines with or without a particular string, and a few other tricks.
If you want to use the program, run it and try the "H" (help) command first.
Historical note and rant: this program was first developed in order to deal with a flood of FORTRAN77 program files which had both TAB characters (stupid, stupid) and sequence numbers (too distasteful to mention any further).
Feeding such data to the compiler was asking for trouble, particularly if, beforehand, you had made any editing changes that caused the continuation character (oh my, did I forget to mention those things?) to shift out of its position, or the sequence numbers to poke their noses into the text fields.
Some of these problems would be invisible to the programmer, because many editors conspired to hide or "process" TAB characters in an indefensibly deceptive way. (This ALL goes back to "C" and "int's" and other abbreviations and shortcuts that seem to serve the incompetent or lazy typist while scattering deadly traps for the innocent). ...Anyway, I got tired of replacing TAB's and stripping out sequence numbers, so I wrote a program called strip to do it for me. It got renamed stripper because there was some UNIX utility that got to the strip name first.
The computer code and data files made available on this web page are distributed under the GNU LGPL license.
STRIPPER is available in a FORTRAN90 version.
CR2CRLF, a C++ program which replaces carriage returns by carriage returns + line feeds.
CR2LF, a C++ program which reads a text file and replaces carriage returns by line feeds.
CRRM, a C++ program which removes all carriage returns from a file.
DEBLANK, a C++ program which makes a copy of a text file which contains no blank lines.
DECOMMENT, a C++ program which makes a copy of a text file which contains no "comment" lines (that begin with "#").
DETROFF, a C++ program which removes from a file every occurrence of the TROFF overprint pair character+backspace, which can make a MAN page printable;
FILUM, a FORTRAN90 library which performs various operations on files.
REFORMAT, a FORTRAN90 program which reads a text file that contains only real values, and writes a copy which has a fixed number of real values on each line.
REWORD, a C++ program which reads a text file and writes a copy which has a fixed number of "words" per line.
UNCONTROL, a C++ program which makes a copy of a text file which contains no control characters.
WRAP, a C++ program which makes a copy of a text file in which no line is longer than a user-specified wrap length.
You can go up one level to the FORTRAN90 source codes.