Slashdot Mirror


Interview With the Author of "Mastering Cat"

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."

29 of 243 comments (clear)

  1. I tried mastering cat. by SuperBry · · Score: 5, Funny

    But I kept on getting scratched...

    1. Re:I tried mastering cat. by ControversialMatt · · Score: 5, Insightful

      There's your problem. It's not your cat, you're his person.

  2. Re:How about the followup? by Anonymous Coward · · Score: 5, Funny

    I'd prefer the follow up "Mastering Pussy"

  3. Damn. by castorvx · · Score: 5, Informative

    I was hoping for a manual to help me read the icanhascheezburger comments.

    1. Re:Damn. by momerath2003 · · Score: 4, Informative

      That would be "lolcat," not cat. And here is a page to help you.

      --
      I had but a simple dream, to destroy all humans.
  4. How hard is it to get CAT to work with HURD? by TinBromide · · Score: 5, Funny

    I've been trying to get my cat to play nice with gnu Hurd for a while. It seems like it starts to work, but then starts to ignore all IO and proceeds to SLEEP(3600). I am eagerly awaiting someone who can get a cat Hurd to work.

    --
    Is it sad that I am more likely to recognize you and your posts by your sig than your name or UID?
    1. Re:How hard is it to get CAT to work with HURD? by mrogers · · Score: 5, Funny

      The trick to controlling a cat Hurd is pipes... lots of pipes.

  5. O HAI by Oxy+the+moron · · Score: 5, Funny

    I CAN HAZ DIS BOOK NOW PLZ??

    --

    Proudly supporting the Libertarian Party.

    1. Re:O HAI by Bob+The+Cowboy · · Score: 5, Funny

      I CAN HAZ DIS BOOK NOW PLZ??
      --

      Proudly supporting the Libertarian Party.

      I knew it... lolcats is a grassroots movement started by the Libertarians to... uhh... get... cheezeburgers?

  6. Neuter to decrease aggression by wonmon · · Score: 5, Funny

    rm -r testes

    1. Re:Neuter to decrease aggression by kg9ov · · Score: 5, Funny

      The cat probably won't be as open to that as you may think... I would suggest using the -f option as well, just to be sure.

    2. Re:Neuter to decrease aggression by upside · · Score: 4, 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.

      --
      I'm sorry if I haven't offended anyone
    3. Re:Neuter to decrease aggression by Zashi · · Score: 4, Funny

      Parent's command only works after you touch testes

      --
      Skiffy is Spiffy, but Ort is tort.
  7. Still Waiting by Kushieda+Minorin · · Score: 4, Funny

    I'm still waiting for "Mastering true" and "Mastering false". The delay is understandable, considering nobody is able to harness the true power of these two commands.

  8. I'm more intersted in tail than cat. by Maxo-Texas · · Score: 4, Funny

    If they released a book on how to master tail (heck, even find tail), it would change slashdot forever.

    --
    She was like chocolate when she drank... semi-sweet at first and then increasingly bitter.
    1. Re:I'm more intersted in tail than cat. by drooling-dog · · Score: 5, Funny

      That would be useful. And if there was one on mastering head, I'd buy it for the GF...

    2. Re:I'm more intersted in tail than cat. by fwice · · Score: 5, Funny

      >---joke--->

         O
        \|/    <--- you
        / \

      WHOOSH

  9. Re:How about the followup? by lord_rob+the+only+on · · Score: 4, Funny

    rob@thinkpad:~$ pussy
    bash: pussy: command not found

    rob@thinkpad:~$ man pussy
    No manual entry for pussy

    Pussy doesn't even exist ...

  10. Here goes: by IceCreamGuy · · Score: 4, Funny

    ~# date
    Wed Apr 1 13:31:50 EDT 2009
    ~# links2 -dump http://slashdot.org/ >> humortest.txt
    ~# cat humortest.txt | grep $somethingfunny
    ~#

  11. Re:I use... by Tetsujin · · 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.

    --
    Bow-ties are cool.
  12. Re:god by bigstrat2003 · · Score: 4, 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.

    --
    "16MB (fuck off, MiB fascists)" - The Mighty Buzzard
  13. Upcoming second edition in 2012 by Tetsujin · · Score: 4, 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:

    • "cat" type safety
    • Using "cat" in traditional mode vs. object-oriented
    • "cat" pitfalls: attempting to run "cat" on non-serializable live objects, "cat" on lists vs. "cat" on text files, using "cat" to capture user input (and dealing with the untyped data stream that results...)

    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

    --
    Bow-ties are cool.
  14. Re:How about the followup? by h4rm0ny · · Score: 4, Funny

    Pussy doesn't even exist ...

    That's strange. When I try:

    h4rm0ny@mybox~$ grep -r pussy *

    I get lots and lots of results.

    --

    Aide-toi, le Ciel t'aidera - Jeanne D'Arc.
  15. But... by cstdenis · · Score: 4, Funny

    it's not even Caturday yet.

    --
    1984 was not supposed to be an instruction manual.
  16. Re:Frist Psot? by cayenne8 · · Score: 5, Funny
    "What is this "African Decent" you speak of? :)"

    Well, it is like regular Descent, 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.

    --
    Light travels faster than sound. This is why some people appear bright until you hear them speak.........
  17. Re:How about the followup? by oldspewey · · Score: 4, Funny

    No manual entry for pussy

    I think I see the problem here - try starting her off with 3 or 4 vodka appletinis.

    --
    If libertarians are so opposed to effective government, why don't they all move to Somalia?
  18. Re:I just /usr/bin/cat my coffee everywhere. by steveha · · 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

    --
    lf(1): it's like ls(1) but sorts filenames by extension, tersely
  19. Wrong cover by dlsmith · · Score: 5, Funny

    O'Reilly would never put a picture of a cat on a book about "cat". It's way too obvious. (Well, nevermind.)

  20. Re:How about the followup? by jonbryce · · Score: 4, 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.