The document shows examples of using the tr command in Linux to manipulate text data in a file. In the first example, all occurrences of the letter "a" were replaced with "b". In the second example, multiple consecutive occurrences of ":" were replaced with a single "#". The tr command was used with a file containing user records with user IDs, names, and locations separated by ":" to demonstrate its text transformation capabilities.
The document shows examples of using the tr command in Linux to manipulate text data in a file. In the first example, all occurrences of the letter "a" were replaced with "b". In the second example, multiple consecutive occurrences of ":" were replaced with a single "#". The tr command was used with a file containing user records with user IDs, names, and locations separated by ":" to demonstrate its text transformation capabilities.
The document shows examples of using the tr command in Linux to manipulate text data in a file. In the first example, all occurrences of the letter "a" were replaced with "b". In the second example, multiple consecutive occurrences of ":" were replaced with a single "#". The tr command was used with a file containing user records with user IDs, names, and locations separated by ":" to demonstrate its text transformation capabilities.
The document shows examples of using the tr command in Linux to manipulate text data in a file. In the first example, all occurrences of the letter "a" were replaced with "b". In the second example, multiple consecutive occurrences of ":" were replaced with a single "#". The tr command was used with a file containing user records with user IDs, names, and locations separated by ":" to demonstrate its text transformation capabilities.
1000:sundar:mysore 1001:eugene:chennai 1002:ajit:mysore 1004:hanumesh::::bangalore 1005:girish:mangalore $> cat infydata | tr "a" "b" 1000:sundbr:mysore 1001:eugene:chennbi 1002:bjit:mysore 1004:hbnumesh::::bbngblore 1005:girish:mbngblore In the above example, all occurrences of a have been changed to b. $> cat infydata | tr -s ":" "#" 1000#sundar#mysore 1001#eugene#chennai 1002#ajit#mysore 1004#hanumesh#bangalore 1005#girish#mangalore In the above example, multiple occurrences of : have been replaced by #.