cat

cat - concatenate files and print on the standard output.


Display the contents of a file:

cat mp3_list.txt

Copy file content:

cat mp3_list.txt > mp3_list_2.txt

Concatenate contents of multiple files:

cat rock_mp3_list.txt jazz_mp3_list.txt > all_mp3_list.txt

Show line numbers:

cat -n mp3_list.txt

Show line numbers:

cat -n mp3_list.txt

Show line numbers (only nonemputy lines):

cat -b mp3_list.txt

Don’t display repeated empty lines:

cat -sn mp3_list.txt

Display file content in reverse:

tac mp3_list.txt