Friday, October 22, 2010

tr shell command example

cat file(s) | tr A-Z a-z | tr -c a-z\' ' \n' 

The second pipeline stage converts uppercase to
 lowercase, the third replaces nonletters by newlines.
The third stage treats apostrophes as letters.

No comments:

Blog Archive