In the third in the series, Dann introduces us to the tr command. Here's a flavour:The tr, or translate (aka: transliterate) command, substitutes one more characters for another set of characters or it will delete a specified set of characters. The tr command takes input from standard in and writes to standard out. This simple example of the tr command translates some numbers into a world:echo "12234" |tr '1234' 'aple'The output:appleThe entire article, including links to the videos can be found on his site:http://www.linuxintheshell.org/2012/03/15/episode-002-tr/
Go to this episode
HPR - HPR0944: LITS: Episode 002 - tr
Started by
BINREV SPYD3R
, Mar 13 2012 07:00 PM
No replies to this topic
BinRev is hosted by the great people at Lunarpages!











