Skip to main content
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.

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

catasterpiece

(n): something that's so terribly messed-up, it could not possibly have been done worse, even on-purpose. Often the result of trying to cover-up a previous wrongdoing
When Claude tried to glue the broken statue back together before his boss returned, he glued the arm on the wrong side. It was a true catasterpiece.
catasterpiece by dick vendor November 22, 2011

capmaster 

Someone who caps, or lies, alot. A capmaster typically has a two inch penis but claims it is seven inches.
I played chess against this kid, he's such a capmaster.
capmaster by SussyMontague March 23, 2021

Camastering 

Kuh-master-ing
VERB
the act of a person, animal, or thing that camasters, resulting in behavior which is unnecessary, excessive, and useless in nature. Camastering provides significantly nothing of importance in the end to justify the means.
Man, stop camastering on some dumb shit. You aint have to buy all that tactical survival gear like your on some FBI special OPs taskforce on a mission to take down Pablo Escobar. You work in Beverley Hills dealing with Fresh Prince motherfuckers.

Capmaster Complex 

The Capmaster Complex is when someone who looks like the Pokémon “Incineroar” caps.
Wow what happened
That is Capmaster Complex

Catasterous 

An event which is almost a catastrophy but not quite a disaster.
When my dog slipped out of my hands and nearly head checked the bedframe, it could could have been catasterous, had I not caught her when I did.
Catasterous by Bigcatsrock805 August 24, 2016
More from Urban Dictionary

pajama casual 

Pajama casual is a term used when working from home and preparing for a video conference. All business above the waist and your pajama pants down below.
We have a Zoom meeting in a few minutes and I’ll probably go pajama casual.
pajama casual by jrod-knows March 31, 2020
Word of the Day on October 14, 2026

funflation 

The recent boom in consumer spending on entertainment and experiences with a high demand running up the cost of enjoying of those experiences.
I’m trying to go to this Taylor Swift concert but the funflation has made it so impossible for me to afford tickets.
funflation by Dfree523 November 17, 2023
Word of the Day on October 13, 2026
A US deep south term for an alligator. Usually used in the Cajun dialect.
Take the big pirogue, I saw a huge swamp dog out there earlier.
swamp dog by Crystal Ambrose May 22, 2006
Word of the Day on October 12, 2026

Throat Sweats 

The feeling and build up in your mouth/throat of saliva that sometimes accompanies nausea.
Oh man those burritos gave me the throat sweats, I hope I don’t have food poisoning.
Throat Sweats by TacoFings420 April 23, 2024
Word of the Day on October 11, 2026
Being ignored by someone when making a statement or asking a question. Also known as blanked and turfed.
Person 1: Did u watch ** last nite?
Person 2:......
Person 3: O no u got aired!
aired by Pietro February 9, 2005
Word of the Day on October 10, 2026

piddlefart

Instead of doing my homework, I decided to piddlefart around for two hours.
piddlefart by Rene April 25, 2005
Word of the Day on October 9, 2026
Load more