Top "Tr" questions

tr is a *nix utility for character-level alterations to a stream.

What is the most efficient case-insensitive grep usage?

My objective is to match email addresses that belong to the Yahoo! family of domains. In *nix systems (I will …

regex linux grep case-insensitive tr
Removing trailing / starting newlines with sed, awk, tr, and friends

I would like to remove all of the empty lines from a file, but only when they are at the …

unix sed awk tr
How to use sed to replace the first space with an empty string

I am having trouble loading a space delimited text file into a table. The data in this text file is …

regex linux bash sed tr
Unix tr command to convert lower case to upper AND upper to lower case

So I was searching around and using the command tr you can convert from lower case to upper case and …

unix pipeline tr
tr [:upper:] [:lower:] with Cyrillic text

I'm trying to extract a word list from a Russian short story. #!/bin/sh export LC_ALL=ru_RU.utf8 …

shell unicode tr
Trying to delete non-ASCII characters only

I am trying to manipulate a text file and remove non-ASCII characters from the text. I don't want to remove …

regex linux sed tr
What is the `tr` command in Windows?

What is the Windows equivalent of the tr command in Linux? For example, tr can replace all colons with a …

linux windows cmd tr
SED/tr etc.. : How to comment out a line that contains "string" in a file?

my file contains lines such as these: -A INPUT -m state --state NEW -m tcp -p tcp --dport 2000 -j ACCEPT …

regex bash sed tr
Replacing varying delimiters using sed or tr

I need to convert a list of IDs from using a delimiter consisting of , and/or \r\n or \n …

sed newline tr
How to pipe in the result of another UNIX command

Right now I'm using another text file to store the result of one UNIX command and then using that file …

unix tr