tac

Print and concatenate files in reverse.

Install

All systems
curl cmd.cat/tac.sh
Debian Debian
apt-get install coreutils
Ubuntu
apt-get install coreutils
Alpine
apk add coreutils
Arch Arch Linux
pacman -S coreutils
image/svg+xml Kali Linux
apt-get install coreutils
CentOS
yum install coreutils
Fedora
dnf install coreutils
OS X
brew install coreutils
Raspbian
apt-get install coreutils
Docker
docker run cmd.cat/tac tac powered by Commando

Print and concatenate files in reverse.

  • Print the contents of *file1* reversed to the standard output:
    tac file1
  • Concatenate several files reversed into the target file:
    tac file1 file2 > target_file

© tl;dr; authors and contributors