Skip to main content

Mastering cat 

A fictitious (literally, it's not a real book) book about mastering the UNIX/Linux 'cat' command. "Written" by Shlomi Fish, the acclaimed author of 'Mastering rm', and 'Mastering mv'.
O'Reilly Net: Hi Shlomi!

Shlomi Fish: Hi!

O'Reilly Net: So, what has motivated you to write the book?

Shlomi Fish: Well, I realised people use cat so often that they don't take the time to fully investigate it and learn it. For example, many people I worked with believed that cat can only be used to output one file at a time. So to output several files they used something like:

(cat file1.txt ; cat file2.txt ; cat file3.txt) | command

The horror! cat accepts several files as arguments. So you can write it as:

cat file1.txt file2.txt file3.txt | command

This has motivated me to write the book, to make people fully understand the command.

O'Reilly Net: Isn't mastering cat supposed to be quite easy? Does it really necessitates its own book?

Shlomi Fish: Hell no! Mastering cat is not easy at all. In fact, mastering cat is almost as difficult as herding cats.

For example, one case where I found that people truly underestimate the power of cat is in the prefixing a line example. You can do that with:

echo "This would be the first line" | cat - myfile.txt > myfile.txt.new
mv -f myfile.txt.new myfile.txt

But people do not realize that and instead opted to use sed, awk, or even perl (!). It can be taken further, of course. If the prefix is already in its own file, you can simply use cat prefix.txt myfile.txt

Of course, if you want to append the same text to both the start and the end of a file, you can't do that with cat - myfile.txt -. It simply doesn't work that way. So, I end up explaining a lot about UNIX pipeline concepts in the book.

O'Reilly Net: So what else does your book cover?

Well, I cover many things there. Among them are:

1. History of the cat command.

2. Differences between the various cat implementations. (GNU, the BSDs, System V, etc.)

3. cat equivalents in other operating systems (DOS, Win32, VMS, OS/390, etc.)

4. Overview of the GNU cat codebase (for programmers).

I'm also focusing on the various cat flags, which aid in its interactive use. For example the -E/--show-ends flag, that places dollar signs at the end of the lines.

Except for that I'm also covering dog which is a program that provides a superset of the cat program. I should also mention mouse which aimed to provide an even greater superset, and was never released. Rumors say some parts of it are based on code of the leaked Windows 2000 sources.

O'Reilly Net: Your book seems bound to be popular. (for some values of popularity) What can we expect from you next?

Shlomi Fish: Well, I hope many people will buy the book, or read it online so they'll be educated about cat. If you like "Mastering cat", look forward to my next book - "Mastering echo". I expect it to be published next fall.
Mastering cat by ivantis May 17, 2009
Mastering cat mug front
Get the Mastering cat mug.
See more merch

You the birthday

You the birthday-you the point, you the topic, the reason we here, can be used as a compliment / u looking good or silly/trolling
Nah fr, you the birthday, you got all the attention.
You the birthday by Dev-in April 4, 2026
Word of the Day on May 28, 2026

church hurt 

church hurt is where you experience a degree of distance, pain, or judgement from your church community. Essentially, you are just unable to “find your place”. This is prevalent in the Christian community, but can be extended to other religions.
Now that I am an adult I am beginning to heal from the church hurt that was inflicted on me as a child.
Word of the Day on May 27, 2026
Huge. Surpassing normal expectations.
I was fishing with a Spinner Bait and a HONKIN pike came after it and hit it . Felt like a lawnmower running over a brick.
honkin by R. LaJoy December 26, 2005
Word of the Day on May 26, 2026

Stealthie 

when you're holding up your phone and making faces at it, as though you are taking a selfie, but you're really taking a picture of the person across from you or the wall or anything else that seems interesting but you don't want to be caught dead taking a picture of.

This action is often made more convincing by wiggling the eyebrows or opening the mouth, to pretend you're trying to get a Snapchat filter to work.
FRIEND A: "Did you just take a stealthie of me?"

FRIEND B (turning phone around): "no I was just using snapchat's new filter, see?"
Stealthie by gwenhyfar October 2, 2016
Word of the Day on May 25, 2026

Summer Teeth 

When someone has a lot of missing teeth.
Mannn, that dude has summer teeth!
What do you mean?
Summer here, summer there...
Summer Teeth by BeckPot August 2, 2012
Word of the Day on May 24, 2026
The grindset is a contemporary ideology of self-exploitation disguised as strength, deeply tied to the aesthetics of the “sigma male” and to new digital forms of patriarchy. It promotes the idea that human worth depends on productivity, economic success, absolute emotional control, and the ability to work endlessly, turning vulnerability, rest, community, and tenderness into signs of weakness. Beneath its rhetoric of discipline and power often lies a profound inability to relate healthily to pain, fragility, and human interdependence.
“That’s the grindset, brother. While weak men sleep and complain, sigma males stay disciplined, work in silence, suppress emotions, and build power while everyone else wastes time chasing comfort.”
Grindset by Omega-Male May 22, 2026
Word of the Day on May 23, 2026