tr command
tr command is used, for translation or deletion of input string data, and also we can change the case of letters from upper to lower and vice versa. It helps in formatting the case of text data whenever needed.
Syntax of tr command:
tr [OPTION] SET1 [SET2]
Sample code:
Uppercasing the inputted string using tr command
echo “www.w3wiki.com” | tr [:lower:] [:upper:]
Output:
Explanation:
Here we are converting the lowercase string into the uppercase format by using tr command.
Useful Commands For Filtering Text for Effective File Operations in Linux
In this article, let us learn about different commands used in Linux for filtering text to implement effective file operations on Linux Machines.
Contact Us