Interview With the Author of "Mastering Cat" 243
Shlomi Fish writes "O'Reilly is publishing a new book titled 'Mastering cat,' about the UNIX 'cat' command. Here is an interview O'Reilly-Net conducted with the author about it. Read it to see if this book should be part of your bookshelf of technical books."
How about the followup? (Score:3, Funny)
?tac gniretsam
Re:How about the followup? (Score:5, Funny)
I'd prefer the follow up "Mastering Pussy"
Re: (Score:2)
Dude, this is Slashdot, and it's April Fools Day, not Opposite Day.
Re:How about the followup? (Score:4, Informative)
Re: (Score:2)
I've never heard of it, but I wouldn't be surprised if it was true.
And I can imagine situations where it would be useful - for getting [part of] a log file in reverse chronological order, for one.
Re: (Score:3, Informative)
for getting [part of] a log file in reverse chronological order
Funny you should say that, it's exactly how I use the "tac" command.
Re:How about the followup? (Score:5, Funny)
rob@thinkpad:~$ pussy
bash: pussy: command not found
rob@thinkpad:~$ man pussy
No manual entry for pussy
Pussy doesn't even exist ...
Re:How about the followup? (Score:5, Funny)
That's strange. When I try:
h4rm0ny@mybox~$ grep -r pussy *
I get lots and lots of results.
Re: (Score:2)
Well I know where it's not:
-bash-3.2$ which pussy /usr/bin/which: no pussy in (/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin)
And then ofcourse there's
-bash-3.2$ man 8 pussy
No entry for pussy in section 8 of the manual
Re:How about the followup? (Score:5, Funny)
No manual entry for pussy
I think I see the problem here - try starting her off with 3 or 4 vodka appletinis.
Re:How about the followup? (Score:4, Funny)
bash: vodka: command not found
pparadis@alpha:~$ appletini
bash: appletini: command not found
pparadis@alpha:~$ tequila
bash: tequila: command not found
pparadis@alpha:~$ liquor
bash: liquor: command not found
pparadis@alpha:~$ beer
The program 'beer' is currently not installed.
You can install it by typing:
sudo apt-get install gerstensaft
bash: beer: command not found
Wow, I'm off to install beer on my laptop now.
Re:How about the followup? (Score:5, Funny)
pussy does exist, however there is no documentation for it, so you have to figure it out for yourself.
The other thing is, it isn't in $PATH, and slocate doesn't index it, so finding it is an exercise in itself.
Re: (Score:3, Funny)
I think it would tend to be more of a self help book than a technical tome though...
Using mouse to master cat (Score:2, Redundant)
I tried mastering cat. (Score:5, Funny)
Re:I tried mastering cat. (Score:5, Insightful)
Neuter to decrease aggression (Score:5, Funny)
Re:Neuter to decrease aggression (Score:5, Funny)
Re: (Score:2, Insightful)
-f I can see, but -r?! What kind of cat to you have that you need to recurisvely remove testes? o.0
Re:Neuter to decrease aggression (Score:4, Funny)
Inside the testes are smaller cats with smaller testes... In fact, it's the ever-shrinking copies of cats with testes all the way down.
Re:Neuter to decrease aggression (Score:5, Funny)
How do you remove testes recursively? Are cat testes like Russian dolls? If so, is this somehow related to them having nine lives? Perhaps it makes sense. To kill a cat with any certainty you'd have to do something like
kill -9 $(ps axe | cut -d" " -f1 | tail -1 | head | cat)
which - as we know - is an arcane Unixish incantation to kill the cat by putting it in a bag and cutting somewhere between the tail and head with an axe nine times.
Or maybe you meant rm -f
P.S. I take no responsibility if you're stupid enough to run that command. Anything or nothing could happen.
Re: (Score:3, Funny)
Re:Neuter to decrease aggression (Score:5, Funny)
Re: (Score:2)
Re: (Score:2)
Woulds have been funnier if the author were "Claude Bawls", per the joke.
Damn. (Score:5, Informative)
Re:Damn. (Score:5, Informative)
That would be "lolcat," not cat. And here [lolcatbible.com] is a page to help you.
Re: (Score:2)
Mod parent Insightful. His link explains how to Master Lolcat.
Master (Score:4, Insightful)
You can't master any cat, only dogs. As the saying goes - dogs have masters, cats have staff.
How hard is it to get CAT to work with HURD? (Score:5, Funny)
Re:How hard is it to get CAT to work with HURD? (Score:5, Funny)
Re: (Score:2)
Bravo!
Talk to the guys at (Score:3, Funny)
EDS [youtube.com].
Good luck (Score:2)
I've been told that Hurding cats is like trying to control large numbers of some sort of small obstinate animal.
O HAI (Score:5, Funny)
Re:O HAI (Score:5, Funny)
I knew it... lolcats is a grassroots movement started by the Libertarians to... uhh... get... cheezeburgers?
Re: (Score:2)
knew it... lolcats is a grassroots movement started by the Libertarians to... uhh... get... cheezeburgers?
There is no such thing as HAZing a free CHEEZEBURGER.
finally (Score:2)
An april 1 tech story that actually made me laugh a little. Nice.
I'm going to print that cover so I can put it over an old book on my bookshelf.
Re: (Score:2)
Good idea. I was beginning to think I was the only one here who'd actually buy the book if it actually existed, just to have it on the shelf.
I just /usr/bin/cat my coffee everywhere. (Score:3, Informative)
I guess I forgot what day it was, but the title article made me spew my coffee in laughter.
As an aside, remember kids, don't do this:
cat foo | grep bar
It is bad Unix! (If you don't know why, read the non-existent book on cat...) ;)
Re:I just /usr/bin/cat my coffee everywhere. (Score:5, Informative)
As an aside, remember kids, don't do this:
cat foo | grep bar
It is bad Unix!
Eh, it's not that big a deal.
Yes, you can simply say "grep bar foo" and it will have the same effect with less typing. But it's really not that big a deal, and there are times when I would do this. Usually it is because I'm doing something like this:
shell_script foo | grep bar
And I'm not getting the results I expect; then I might swap out the shell script part for cat, to help me debug. It's easier to type
cat !*
or even
^shell_script^cat
than to retype the whole command.
As long as you know what you are doing, build the command line any way you like. The computer exists to serve you, not the other way around...
Now someone will mod me (-1, No Sense of Humor) or (-1, Beating the Joke Into the Ground). But I regret nothing! Nothing, I tell you.
steveha
Re: (Score:3, Informative)
You don't need to do this with grep, since it can take a file as input, but in the general case, any time you are using cat with a single file and a pipe you should be using <.
It doesn't make much difference when you are running a single command, but it makes a huge difference when you are running a loop or something like a find command. The extra cat doubles the number of fork() and read() system calls, ad
In the news today, a group of IT professionals ... (Score:3, Funny)
Still Waiting (Score:4, Funny)
Rings too true (Score:2)
It's obviously an April Fool's prank, but I wouldn't be surprised if there was an entire book dedicated to the more obscure uses of cat and differences between GNU cat and others.
My logic for this is reading about netcat, being completely bewildered, and being even more completely bewildered when the description of sample command lines read that it "works just like cat!"
I'm more intersted in tail than cat. (Score:5, Funny)
If they released a book on how to master tail (heck, even find tail), it would change slashdot forever.
Re:I'm more intersted in tail than cat. (Score:5, Funny)
That would be useful. And if there was one on mastering head, I'd buy it for the GF...
Re: (Score:2)
And for info...
Re: (Score:2)
Lol.
I'd "whoosh" you... but I suspect someone would "whoosh" me then for some reason I don't get.
Re:I'm more intersted in tail than cat. (Score:5, Funny)
O
\|/ <--- you
/ \
WHOOSH
Re: (Score:2)
I think he may have been looking for the other kind.
Re:I'm more intersted in tail than cat. (Score:4, Funny)
Alternatively, you could master head. I hear there's demand for it in certain log processing circles.
Here goes: (Score:5, Funny)
Wed Apr 1 13:31:50 EDT 2009
~# links2 -dump http://slashdot.org/ [slashdot.org] >> humortest.txt
~# cat humortest.txt | grep $somethingfunny
~#
Re: (Score:2, Interesting)
You should really have RTFA. That's a UUOC. You just completely wasted a process call and unnecessarily wrote to a file:
links2 -dump http://slashdot.org/ [slashdot.org] | grep $somethingfunny
Of course, if we look at your use of an appending redirection (>>) (assuming humortest.txt already exists and has useful data), then you still unnecessarily wrote to a file:
links2 -dump http://slashdot.org/ [slashdot.org] | cat humortest.txt - | grep $somethingfunny
Re: (Score:3, Funny)
P.S. thanks for introducing me to the phrase "UUOC," now I have something funny to read!
Re: (Score:2)
Specifically (to save google a few processes.. heh)..
http://www.websters-dictionary-online.org/definition/UUOC [websters-d...online.org]
Re:Here goes: (Score:4, Funny)
You must not have gotten to the chapter entitled "Advanced Cat" (page 2). Cat can also be used as a target for piped output.
Try: ~# wget -o /dev/null -O - http://www.slashdot.org/ [slashdot.org] | cat | cat | cat | grep $somethingfunny
~#
Voila! No temp file needed. And all due to the power of cat (hint: the third one is the most important.)
Don't joke about that. (Score:2)
But don't mess with echo, though. When everything else breaks on your unix OS, and you only have builtins alone, you just need echo and some pipes to get it back on it's feet.
Great Book! (Score:2)
I much prefer Mastering cat to Teach Yourself cat in 24 Hours.
Upcoming second edition in 2012 (Score:5, Funny)
The second edition of "Mastering Cat" will include in-depth coverage of the use of "cat" in the new generation of object-oriented Unix shells. Key topics will include:
You think I'm joking? Watch me. Hopefully what I come up with won't be quite the nightmare I'm trying to describe above. :D
But... (Score:5, Funny)
it's not even Caturday yet.
what are you talking about? (Score:2)
Everyday's Caturday.
Must be rubbish, no mention of tac... (Score:2)
Any book about cat must include tac. I cannot believe the interview didn't mention it once.
Very disappointed, tac is at least as complicated as cat.
In case you were wondering what the book's like... (Score:2, Funny)
here's a what a simple cat implementation looks like (The book leeaves additional features as an exercise to the reader):
But seriously (Score:3, Informative)
I've done that.
awesomeness (Score:2)
This was a good one!
We now need a book on Mastering SUDO . . .
I'm holding out... (Score:2)
there must be more to that than cat spelled backwards
I guess we're lucky (Score:2)
The beginning of a new serie (Score:2)
touch cookbook
Running grep
Practical uniq Management
Advanced fsck for system administrators
|: The missing manual
Re: (Score:2)
You left off my favorite:
Advanced yes
Wrong cover (Score:5, Funny)
man man (Score:2)
The other day I tried to bring up the man page of man, and it didn't have one. I was sad.
OMG! KITTENS (Score:2)
A real cat tip (Score:2)
It's 2009! (Score:2)
Re:Frist Psot? (Score:4, Funny)
Re: (Score:2)
Re:Frist Psot? (Score:5, Funny)
Well, it is like regular Descent [wikipedia.org], except rather than flying through caves, you are flying through a dry, arid desert area. And rather than lasers and smart bombs, you get a spear. If lucky, you get a power up weapon of a coke bottle that comes to you from the gods in the sky.
Re: (Score:2)
Oh, cool, so it's like an expansion back?
(incidentally, I remember playing Descent...)
Re: (Score:2, Funny)
Does the bottle need to be returned at the end of the game, though? Or is that a bonus mission?
Re: (Score:2)
I thought I was the only person who's ever seen that film. I suspect the intersection between those who get it and those with modpoints will be the empty set.
Re: (Score:3, Insightful)
No it isn't, and no, there really shouldn't...
Re: (Score:2)
Re: (Score:2)
Maybe? There really should be an achievement for this.
There should be an automatic ban for anyone who posts "First" or "First Post" or any variation thereof.
Re: (Score:2)
How about a "Score 5 First Post" achievement?
Re: (Score:2, Interesting)
Been there, done that. A few years ago I got first post and a +5 (w/o karma bonus) interesting. I don't see it listed on my achievements list, but I was pretty proud of it at the time. I think a few of the following comments even said that it was the first time they had seen such a beast, and this of course was when "first post" was an interesting challenge and something noteworthy to attain. Nowadays, meh!
Giana Sisters (Score:2)
I am going to get on my Amiga 2000 and play Giana Sisters. That is all.
Giana Sisters... nice...
You know, though, I've listened to a lot of SID music and recently decided to check out some Amiga Music [paula8364.com] for the first time... I found the Amiga version of the Giana Sisters tune surprisingly dull compared to the C64 version. What is up with that?
It took 2 Programmers! (Score:2)
AUTHOR
Written by Torbjorn Granlund and Richard M. Stallman.
My guess is Torbjorn Granlund coded it and RMS takes the credit
Re:I use... (Score:5, Funny)
...Schroeder's cat. If it works, you don't know it, but if it doesn't you have to try again until you get it to work (if you can tell that it worked anyway). Then the pipe comes out to stop my mind frying.
That's "Schrodinger's cat". Your license to make quantum mechanics jokes is hereby revoked. To make sure you don't try to take your license back, we're going to keep you updated on its current velocity.
Re: (Score:2)
Watch out, he might start using a Heisenberg [wikipedia.org] Compensator [wikipedia.org]. Then you're screwed.
Of course, if he uses one, he'll have to build it first, and if he can build one, he'll have earned the card back anyway.
Re: (Score:2)
That's "Schrodinger's cat". Your license to make quantum mechanics jokes is hereby revoked.
That's Schrödinger's cat. Your licence to use Latin characters outside the 7-bit ASCII range is hereby revoked.
Re:I use... (Score:4, Funny)
That's "Schrodinger's cat". Your license to make quantum mechanics jokes is hereby revoked.
That's Schrödinger's cat. Your licence to use Latin characters outside the 7-bit ASCII range is hereby revoked.
Well, I don't have a license to use Latin characters outside the 7-bit ASCII range - which accounts for why I didn't. :D
But, still, touche. (D'oh! I did it again!)
Re: (Score:2, Funny)
Re:god (Score:5, Insightful)
Protip: IGNORE IT.
Seriously, if you hate all these stories so much, leave /. for the day. It won't kill you. You know they're going to be here all day, so come back tomorrow. You'll be happier because you won't be reading the stories, and we'll be happier because you won't be bitching about our fun.
Re: (Score:2)
leave /. for the day
But.... I'm working on 12 points in my consecutive days on Slashdot achievement.
Re: (Score:2)
Except that all the other flipping news websites and blogs are at it too...
Bloody everything...
Re: (Score:2)
It's better than mine [smivsonline.co.uk], which is truly lame, and plugging it here is the only way I'll get any hits!
Re: (Score:2)
Re: (Score:2)
Here it is! (Score:2)