tr Escape Sequences

Table A-21. tr escape sequences

Sequence

Meaning

\ooo

Character with octal value ooo (1-3 octal digits)

\\

A backslash character (i.e., escapes the backslash itself)

\a

“Audible” bell, the ASCII BEL character (since "b" was taken for backspace)

\b

Backspace

\f

Form feed

\n

Newline

\r

Return

\t

Tab (sometimes called a horizontal tab)

\v

Vertical tab

Get bash Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.