home *** CD-ROM | disk | FTP | other *** search
- -------------------------------------------------------------------------------
- RS
- -------------------------------------------------------------------------------
-
- Format:
-
- rs [< filename]
-
- Purpose:
-
- RS is a filter that removes all white spaces (spaces and TABs) between the
- last word and the carriage return at the ends of lines in text files.
-
- Before: After:
-
- last word. ^I[CR] last word.[CR]
- end of text. [CR] end of text.[CR]
- sentence.^I^I^I^I[CR] sentence.[CR]
-
- Example:
-
- Remove unnecessary spaces and tabs from textfile and place it in newfile.
-
- rs <texfile >newfile