2 Minutes To Code (β Version)

'tr' command - 2 minute tutorial

Overview of 'tr' command

The unix comamnd 'tr' is used to replace all occurences of a given set of characters with another set of characters. It also provides options to delete given set of characters or replace multiple occurences of a given set of characters with a single occurence.

We will start with a few basic examples and then explore all the advanced options that 'tr' provides in the next few pages.