Skip to content
Search

Tr

lastmod 2023-12-26created 2020-10-052 edits

translate characters.

Simple Example

Example of searching for and translating characters in a string:

tr 'abcd' 'jkmn'

Upper to Lower

tr '[:upper:]' '[:lower:]'

How to merge multiple lines of output

You can use the following tools:

cat ... | tr '\n' ' ' | ...

See also

Favorite site

author Zer0 sitemap