Jump to content


Photo

HPR - HPR0944: LITS: Episode 002 - tr


  • Please log in to reply
No replies to this topic

#1 BINREV SPYD3R

BINREV SPYD3R

    I should go outside once in a while

  • Members
  • 2,526 posts

Posted 13 March 2012 - 07:00 PM

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




BinRev is hosted by the great people at Lunarpages!