TAC(1) General Commands Manual TAC(1)

# [NAME](#NAME)

tac - Write each file to standard output, last line first.

# [SYNOPSIS](#SYNOPSIS)

**tac** \[OPTION]... \[FILE]...

# [DESCRIPTION](#DESCRIPTION)

Write each file to standard output, last line first.

# [OPTIONS](#OPTIONS)

[**-b**, **--before**](#b)

attach the separator before instead of after

[**-r**, **--regex**](#r)

interpret the sequence as a regular expression

[**-s**, **--separator** *&lt;STRING&gt;*](#s)

use STRING as the separator instead of newline

[**-h**, **--help**](#h)

Print help

[**-V**, **--version**](#V)

Print version

# [VERSION](#VERSION)

v(uutils coreutils) 0.12.0

2026-09-30

---

Document: tac(1) from uutils 0.12.0-r1 (Chainguard OS)
Source: https://github.com/uutils/coreutils
