Filters are system utilities that intercept data from the standard input device (STDIN), process it, and send it to the standard output device (STDOUT). Filters can be used with a pipe.
XFWRD.EXE is a simple filter that removes all ">" characters at the start of a line. It only removes the ">" characters at the start of a line and stops when any other character is found.
XFWRD3.EXE is a simple filter that removes all single ">" characters and the string " >" at the start of a line. It stops when any other character is found.
XFORM.EXE is a simple filter that the new line characters from lines that are more than 1 character long. Thus it will turn each paragraph into one long line suitable for importing into a program that provides word wrapping.
XNEWS.EXE is a filter that attempts to remove MIME formatting characters, "smart quotes" and other "smart" formatting characters that are left in text that was created or modified using microsoft products.
Useage examples:
xform <raw.txt >filtered.txt fclip2 | xfwrd | toclip
I wrote the programs to use with my Command line Clipboard Access (CCA) utilities which are command line programs (fclip2 and toclip) that provide access to the OS/2 clipboard.
To use XFWRD, I created a CMD file that contained the following line:
fclip2 | xfwrd | toclip
I then created a program object that executes the CMD file and set the object to open minimized and close the window on exit. Clicking on the program object then takes the text from the OS/2 clipboard and pipes it to XFWRD and then pipes it back to the clipboard via toclip.
You can find out more about CCA on my web page at: http://www2.tulsaconnect.com/dwhawk/clipboard.html
You can find a trial version of CCA on my web page at: http://www2.tulsaconnect.com/dwhawk/share.html