Shell / Commands

tr

English

Overview

A command for translating or deleting characters.

Details

A command that maps one set of characters to another to substitute, delete, or squeeze them, well suited to simple character-by-character transformations such as converting uppercase to lowercase. "tr -d" deletes the specified characters, which also makes it handy for simple text cleanup like converting line endings or stripping unwanted whitespace.

More Linux terms