Uses of tr

Useful for dividing content which separate rows for further processing with e.g. grep and sed. The example below replace = characters with newline characters. Then interesting lines are selected through grep and lastly trimmed using sed.

cat mail.txt | tr "=" "\n" | grep 'target' | sed 's/"//g' | sed 's/ .*//g'

References