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
Urban Dictionary Merch
Your favorite words on things you can wear, drink from, read, or give to a friend.
The Urban Dictionary Store sells gifts you’ll have to explain.
More from Urban Dictionary
NYC people who migrate north to Quahog, RI to see the leaves in the fall.
New York and everyone from there can fornicate themselves with an iron stick.
leafers by ss++ February 8, 2005
Word of the Day on September 27, 2026

Respectfully 

Precedes or follows either a gratuitously disrespectful or honest remark, originated in New York City. Used in similar fashion to "no offense" or "to be honest," interchangeably.
Ya mans is wild buns, respectfully. Respectfully he's washed.

After school, The Modells on Jamaica Ave was active. Respectfully.
Respectfully by john quan the first December 20, 2020
Word of the Day on September 26, 2026

You met me at a very Chinese time in my life

A moment in time where you feel distinctly Chinese over all other things.
Dante: "I wish I could be Nigerian, but I can't because I'm Chinese. You met me at a very Chinese time in my life."
Word of the Day on September 25, 2026
Adjective. Used to describe persons who have adjusted or altered their lifestyle for environmental reasons. Crunchy persons tend to be politically strongly left-leaning and may be additionally but not exclusively categorized as vegetarians, vegans, eco-tarians, conservationists, environmentalists, neo-hippies, tree huggers, nature enthusiasts, etc.

Also used to describe establishments where alternative foods and products are sold, i.e. natural food stores.

Modified derivative of granola.
"I need more crunchy guys in my life. I'm so tired of dating preppy metrosexual assholes."

"I'm heading out to the crunchy store to pick up some fair trade chocolate and tea tree oil, do you need anything?"
crunchy by EBC July 11, 2007
Word of the Day on September 24, 2026
A group of people, typically women, searching through someone’s digital footprint in order to find more information about that person.
Susie wasn’t sure if her new Hinge match was a creep, so she assembled Galantir and they found out he used to post slurs on gaming forums.
Galantir by Ge-sus September 22, 2026
Word of the Day on September 23, 2026

murderhobo 

In a tabletop game, a murderhobo is a player who murders NPCs indiscriminately. This is normally derogatory, referring to a player who totally ignores quests, dialog, backstory, trade, world building etc.

The term is most common with Dungeons and Dragons, but it can be applied to most RPGs where the player is allowed to kill most quest-giving NPCs and NPC traders. E.g. Elder Scrolls, Fallout, Divinity original sin.
DM: The sad little orphan girl tugs at Steve's trenchcoat to get his attention, and ask for help saving her pet dog from...
Steve: I'd like to roll a strength check against strangling the orphan.
Dave: I call dibs on the dog.
DM: You murderhobos disgust me.
murderhobo by Loup&S September 9, 2021
Word of the Day on September 22, 2026
Next