TAC(1)

✨ TAC(1) β€” the General Commands Manual glow-up ✨

okay bestie, pull up a chair because tac is about to become your new fave 🫢 it lives in the General Commands Manual section, and tbh it's giving "reverse uno card for your files" β€” no cap.


🌸 NAME 🌸

tac β€” write each file to standard output, last line first. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

tac [OPTION]... [FILE]...

πŸ’– DESCRIPTION πŸ’–

Write each file to standard output, last line first. That's it, that's the whole vibe. It's cat but walking backwards down the runway, main character energy, flipping the whole script. iconic. ✨


πŸŽ€ OPTIONS πŸŽ€

  • -b, --before β€” attach the separator before instead of after. little pre-game separator moment πŸŽ€
  • -r, --regex β€” interpret the sequence as a regular expression. fancy mode activated, she's doing pattern math now πŸ”₯
  • -s, --separator <STRING> β€” use STRING as the separator instead of newline. you pick the divider, she respects it πŸ’œ
  • -h, --help β€” print help. your bestie explaining herself πŸ“–
  • -V, --version β€” print version. the "who am i" moment πŸ‘‘

⭐ VERSION ⭐

v(uutils coreutils) 0.12.0


🌈 EXAMPLES 🌈

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 ...
The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail. 😭 (yes bestie, it's still cooking β€” we're not done yet, stay tuned fr fr)

and that's the whole page, periodt πŸ’… this lil masterpiece is served up by uutils coreutils, version 0.12.0, dated 2026-09-25 β€” screenshot it, cite it, frame it, it's basically a museum piece now πŸ–ΌοΈβœ¨ mwah, go reverse some lines bestie 🫢🌸

πŸ“¦ where this page comes from