commands.sh

tac

all

Display and concatenate files with lines in reversed order. See also: `cat`.

More info →

Options (3)

-s, --separatorboolean

Use a specific separator

Example: tac {{[-s|--separator]}} {{separator}} {{path/to/file1 path/to/file2 ...}}
-r, --regexboolean

Use a specific `regex` as a separator

Example: tac {{[-r|--regex]}} {{[-s|--separator]}} {{separator}} {{path/to/file1 path/to/file2 ...}}
-b, --beforeboolean

Use a separator before each file

Example: tac {{[-b|--before]}} {{path/to/file1 path/to/file2 ...}}

Examples (5)

Concatenate specific files in reversed order

tac path/to/file1 path/to/file2 ...

Display `stdin` in reversed order

cat path/to/file | tac

Use a specific separator

tac [-s|--separator] separator path/to/file1 path/to/file2 ...

Use a specific `regex` as a separator

tac [-r|--regex] [-s|--separator] separator path/to/file1 path/to/file2 ...

Use a separator before each file

tac [-b|--before] path/to/file1 path/to/file2 ...
made by @shridhargupta | data from tldr-pages