tac - concatenate and print in reverse - Video Man Pages @DistroTube
tac - concatenate and print in reverse - Video Man Pages  @DistroTube
Uploaded December 2025 | Updated November 2026, 3 days ago
The 'tac' command is used to concatenate files and print them in reverse.

- Print the contents of a file in reverse (by line) to stdout:
tac path/to/file

- Concatenate specific files in reverse:
tac file1 path/to/file2 ...

- Display stdin in reversed order:
printf "one\ntwo\nthree\n" | tac

- Use a specific separator rather than the new line:
tac -s separator path/to/file1 path/to/file2 ...

- Use a specific regex as a separator:
tac -r -s 'regex' path/to/file1 path/to/file2 ...

EXAMPLE: tac -r -s 'x\|[^x]' file1
This matches either the character 'x' OR any character that is not 'x', effectively matching every character in the file.

- Use a separator (new line by default) before each file:
tac -b file1 file2 ...

REFERENCED:
β–Ί gitlab.com/dwt1/vidman

WANT TO SUPPORT THE CHANNEL?
πŸ’° Patreon: patreon.com/distrotube
πŸ’³ Paypal: paypal.com/donate/?hosted_button_id=MW3ZFGS8Q9JGW
πŸ›οΈ Amazon: amzn.to/2RotFFi
πŸ‘• Teespring: teespring.com/stores/distrotube

DT ON THE WEB:
πŸ•ΈοΈ Website: http://distro.tube
πŸ“ GitLab: gitlab.com/dwt1
πŸ—¨οΈ Mastodon: fosstodon.org/@distrotube
πŸ‘« Reddit: reddit.com/r/DistroTube
πŸ“½οΈ Odysee: odysee.com/@DistroTube:2

FREE AND OPEN SOURCE SOFTWARE THAT I LIKE:
🌐 Brave Browser - brave.com
πŸ“½οΈ Open Broadcaster Software: obsproject.com
🎬 Kdenlive: kdenlive.org
🎨 GIMP: gimp.org
πŸ’» VirtualBox: virtualbox.org
πŸ—’οΈ Doom Emacs: github.com/hlissner/doom-emacs

Your support is very much appreciated. Thanks, guys!
tac - concatenate and print in reverse - Video Man PagesWhy No One Can Answer The Vim Versus Emacs QuestionIncognito Web Browsing Is NOT Private! (Well...Sort Of)grep - search for patterns in files - Video Man PagesInstall Programs From Any Linux Distro With BoxBuddyHey, DT! Will A.I. Kill Human Content Creation?xargs - execute command lines from standard input - Video Man PagesIs Artix Linux Just A Protest Distro?A New Folder Just Appeared In Your Home DirectoryHey, DT! Youre Not Bald...But You Are Wide! (Plus Other Comments)Dunst Adds Desktop Notifications To Your Window ManagerA Quick First Look At The Niri Window Manager
DistroTube |

'tac' - concatenate and print in reverse - Video Man Pages

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER