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

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

DistroTube on Odysee

December 4, 20254m 25s

Audio is streamed directly from the publisher (player.odycdn.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

thumbnail

The 'tac' 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:
โ–บ https://gitlab.com/dwt1/vidman

WANT TO SUPPORT THE CHANNEL?
๐Ÿ’ฐ Patreon: https://www.patreon.com/distrotube
๐Ÿ’ณ Paypal: https://www.paypal.com/donate/?hosted_button_id=MW3ZFGS8Q9JGW
๐Ÿ›๏ธ Amazon: https://amzn.to/2RotFFi
๐Ÿ‘• Teespring: https://teespring.com/stores/distrotube

DT ON THE WEB:
๐Ÿ•ธ๏ธ Website: http://distro.tube
๐Ÿ“ GitLab: https://gitlab.com/dwt1
๐Ÿ—จ๏ธ Mastodon: https://fosstodon.org/@distrotube
๐Ÿ‘ซ Reddit: https://www.reddit.com/r/DistroTube/
๐Ÿ“ฝ๏ธ Odysee: https://odysee.com/@DistroTube:2

FREE AND OPEN SOURCE SOFTWARE THAT I LIKE:
๐ŸŒ Brave Browser - https://brave.com/
๐Ÿ“ฝ๏ธ Open Broadcaster Software: https://obsproject.com/
๐ŸŽฌ Kdenlive: https://kdenlive.org
๐ŸŽจ GIMP: https://www.gimp.org/
๐Ÿ’ป VirtualBox: https://www.virtualbox.org/
๐Ÿ—’๏ธ Doom Emacs: https://github.com/hlissner/doom-emacs

Your support is very much appreciated. Thanks, guys!
...
https://www.youtube.com/watch?v=sbGetz7R_nY