Top "Tr" questions

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

How to concatenate multiple lines of output to one line?

If I run the command cat file | grep pattern, I get many lines of output. How do you concatenate all …

linux bash unix grep tr
Using tr to replace newline with space

Have output from sed: http://sitename.com/galleries/83450 72-profile Those two strings should be merged into one and separated with …

replace newline space git-bash tr
tr command - how to replace the string "\n" with an actual newline (\n)

I would like to use the tr command to replace all occurrences of the string "\n" with a new line (\…

linux gnu tr
Delete a specific string with tr

Is it possible to delete a specific string with tr command in a UNIX-Shell? For example: If I type: tr …

bash unix command tr
BASH tr command

Id like to convert it to uppercase for the simple purpose of formatting so it will adhere to a future …

linux bash scripting case tr
How to replace one character with two characters using tr

Can tr replace one character with two characters? I am trying to replace "~" with "~\n" but the output does not …

shell unix tr
unix tr find and replace

This is the command I'm using on a standard web page I wget from a web site. tr '<…

unix sed awk tr
Removing a newline character at the end of a file

To remove all newlines you could, say: tr -d '\n' < days.txt cat days.txt | tr -d '\…

bash scripting newline tr
Replace slash in Bash

Let's suppose I have this variable: DATE="04/Jun/2014:15:54:26" Therein I need to replace / with \/ in order to get the string: "04\/…

regex linux bash tr slash
Removing all special characters from a string in Bash

I have a lot of text in lowercase, only problem is, that there is a lot of special characters, which …

bash shell tr linux-mint