How to translate, squeeze and delete characters using tr in Linux

Translate, squeeze, and/or delete characters from standard input, writ- ing to standard output. -c, -C, –complement first complement SET1 -d, –delete delete characters in SET1, do not translate -s, –squeeze-repeats replace each input sequence of a repeated character that is listed in SET1 with a single occurrence of that character -t, –truncate-set1 first truncate SET1 to length of SET2

Share
This entry was posted in Important for LPI 117-101. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>