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

243 comments

  1. How about the followup? by Fittysix · · Score: 3, Funny

    ?tac gniretsam

    --
    *.sig
    1. Re:How about the followup? by Anonymous Coward · · Score: 5, Funny

      I'd prefer the follow up "Mastering Pussy"

    2. Re:How about the followup? by Anonymous Coward · · Score: 0

      "A cat is fine too"

    3. Re:How about the followup? by prefec2 · · Score: 1

      The followup is "Echo Insights"

    4. Re:How about the followup? by exley · · Score: 1

      Dude, this is Slashdot, and it's April Fools Day, not Opposite Day.

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

    6. 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.
    7. Re:How about the followup? by cayenne8 · · Score: 2, Funny
      Too bad there isn't a Unix command "Bater".....I'm sure that would be his next book.

      :)

      I think it would tend to be more of a self help book than a technical tome though...

      --
      Light travels faster than sound. This is why some people appear bright until you hear them speak.........
    8. 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?
    9. Re:How about the followup? by Sir_Lewk · · Score: 3, Informative

      'tac' is an actual *nix program, prints files out in reverse.

      --
      "linux is just DOS with a UNIX like syntax" -- Galactic Dominator (944134)
    10. Re:How about the followup? by upside · · Score: 1

      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

      --
      I'm sorry if I haven't offended anyone
    11. Re:How about the followup? by Hognoxious · · Score: 1

      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.

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
    12. Re:How about the followup? by palegray.net · · Score: 2, 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.

    13. Re:How about the followup? by palegray.net · · Score: 3, Funny

      pparadis@alpha:~$ vodka
      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.

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

    15. Re:How about the followup? by Bromskloss · · Score: 1

      'tac' is an actual *nix program, prints files out in reverse.

      And look, wow! There is even the reverse of tac, called cat, which takes the output of tac and prints it backwards. I wonder how many levels this continues. Maybe I should write a script to find out.

      Then there is this command sl. Run it by accident when you are really stressed and it makes your head explode.

      --
      Swedish plasma phys. PhD student; MSc EE; knows maths, programming, electronics; finance interest; seeks opportunities
    16. Re:How about the followup? by Anonymous Coward · · Score: 0

      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.

      Once you find, you can always finger it.

    17. Re:How about the followup? by jefu · · Score: 1

      Of course, if cat didn't exist, you could always define an alias to "tac | tac".

    18. Re:How about the followup? by mikiN · · Score: 1

      Pussy doesn't even exist ...

      Hmm, there is a G-spot, but it's well hidden behind a cover.

      $ dpkg -L gspot
      ...
      /usr/lib/gnome-panel/gspot
      ...

      Isn't IT great?

      --
      The Hacker's Guide To The Kernel: Don't panic()!
    19. Re:How about the followup? by Hordeking · · Score: 1

      I'd prefer the follow up "Mastering Pussy"

      My girlfriend loves it when I master her cat.

      --
      Disclaimer: The opinions and actions of the US Gov't are in no way representative of those held by this author or its ci
    20. Re:How about the followup? by Anonymous Coward · · Score: 0

      Choo choo!

    21. Re:How about the followup? by ascari · · Score: 1

      Or you could try some of the techniques from "mastering finger".

    22. Re:How about the followup? by gyrogeerloose · · Score: 1

      Last login: Tue Mar 31 19 20:59:59 on console Macintosh:~ gyro$ man tac
      No manual entry for tac
      Macintosh:~ gyro$

      --
      This ain't rocket surgery.
    23. Re:How about the followup? by scotch · · Score: 1

      How is that funny?

      --
      XML causes global warming.
    24. Re:How about the followup? by Sir_Lewk · · Score: 1

      http://linux.die.net/man/1/tac

      It's pretty standard.

      --
      "linux is just DOS with a UNIX like syntax" -- Galactic Dominator (944134)
    25. Re:How about the followup? by palegray.net · · Score: 1

      It hangs in the air the way bricks don't?

    26. Re:How about the followup? by Anonymous Coward · · Score: 0

      No, that only proves that your system doesn't have a man* pussy. Most systems don't.

      *page for

    27. Re:How about the followup? by DeBaas · · Score: 1

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

      have you tried entering automatically?

      --
      ---
    28. Re:How about the followup? by andrikos · · Score: 1

      You are in the wrong place, try first:
      cd /pub

    29. Re:How about the followup? by abuelos84 · · Score: 0


      nahuel@CORE2:~$ tac lol.txt
      G
      F
      E
      D
      C
      B
      A
      nahuel@CORE2:~$

      and

      File: *manpages*,  Node: tac,  Up: (dir)

      TAC(1)                           User Commands                          TAC(1)

      NAME
             tac - concatenate and print files in reverse

      SYNOPSIS
             tac [OPTION]... [FILE]...

      DESCRIPTION
             Write  each FILE to standard output, last line first.  With no FILE, or
             when FILE is -, read standard input.

      --
      -- Counting backwards since 1984!
    30. Re:How about the followup? by k1773re7f · · Score: 1

      "It is best to keep your mouth shut and appear a fool, than to open it and remove all doubt" -Mark Twain Dude, I think Sam was quoting Benjamin Franklin when he said that.

      --
      This sig. intentionally left blank.
    31. Re:How about the followup? by Hognoxious · · Score: 1

      There's two kinds of funny - funny as in beer, and funny as in speech.

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
    32. Re:How about the followup? by gyrogeerloose · · Score: 1

      Must be a Linux app rather than BSD, I guess. Or maybe Apple just decided it didn't need to be included.

      --
      This ain't rocket surgery.
  2. Frist Psot? by orclevegam · · Score: 0, Offtopic

    Maybe? There really should be an achievement for this.

    --
    Curiosity was framed, Ignorance killed the cat.
    1. Re:Frist Psot? by snowraver1 · · Score: 3, Funny

      There is, but it only works if you are logged in as AC and if you post either a goatse pic, a long post about Obama's shit, or an instruction manual for someone of african decent.

      --
      Copyright 2010. All rights reserved. This comment may not be copied in any way including, but not limited to caching.
    2. Re:Frist Psot? by Tim+C · · Score: 2, Insightful

      No it isn't, and no, there really shouldn't...

    3. Re:Frist Psot? by CannonballHead · · Score: 1

      What is this "African Decent" you speak of? :)

    4. 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.........
    5. Re:Frist Psot? by Colonel+Korn · · Score: 1

      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.

      --
      "I zero-index my hamsters" - Willtor (147206)
    6. Re:Frist Psot? by sanjosanjo · · Score: 1

      I believe there should be.

    7. Re:Frist Psot? by CannonballHead · · Score: 1

      Oh, cool, so it's like an expansion back?

      (incidentally, I remember playing Descent...)

    8. Re:Frist Psot? by spiffmastercow · · Score: 1

      you're just trying to get a contradiction achievement.

    9. Re:Frist Psot? by Scott+Francis[Mecham · · Score: 2, Funny

      Does the bottle need to be returned at the end of the game, though? Or is that a bonus mission?

      --
      --
    10. Re:Frist Psot? by Jurily · · Score: 1

      How about a "Score 5 First Post" achievement?

    11. Re:Frist Psot? by Hognoxious · · Score: 1

      a power up weapon of a coke bottle that comes to you from the gods in the sky.

      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.

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
    12. Re:Frist Psot? by fprintf · · 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!

      --
      This post brought to you by your friendly neighborhood MBA.
    13. Re:Frist Psot? by blueZ3 · · Score: 1

      No he's not!

      --
      Interested in a Flash-based MAME front end? Visit mame.danzbb.com
    14. Re:Frist Psot? by treeves · · Score: 1

      No, he's not. There's no contradiction achievement.

      --
      ...the future crusty old bastards are already drinking the Kool-Aid.
    15. Re:Frist Psot? by Cyberax · · Score: 1

      Nope. I've seen it too.

    16. Re:Frist Psot? by Anonymous Coward · · Score: 0

      Descent... O_O Because of your post, I feel forced to find my old Descent discs, buy a joystick and install the game tomorrow. Damn you to hell.

    17. Re:Frist Psot? by alexhs · · Score: 1

      I suspect the intersection between those who get it and those with modpoints will be the empty set.

      Nope, I have modpoints. But no more for this story, GP got +5 funny anyway.

      You forgot to give refs :
      http://en.wikipedia.org/wiki/The_Gods_Must_Be_Crazy
      http://www.imdb.com/title/tt0080801/

      --
      I have discovered a truly marvelous proof of killer sig, which this margin is too narrow to contain.
    18. Re:Frist Psot? by Stauken · · Score: 1

      So what does that make 'Irish Terminal Velocity'?

    19. Re:Frist Psot? by Anonymous Coward · · Score: 0

      The Gods must be crazy..

    20. Re:Frist Psot? by Anonymous Coward · · Score: 0

      I accidentally the whole power up.

    21. Re:Frist Psot? by Hognoxious · · Score: 1

      I didn't fortget, I just couldn't be bothered.

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
    22. Re:Frist Psot? by spiffmastercow · · Score: 1

      There is.. (check my achievements, its actually "Contradictor"), but this isn't how you get it.

    23. Re:Frist Psot? by treeves · · Score: 1

      I was just contradicting him. You know, a joke.

      --
      ...the future crusty old bastards are already drinking the Kool-Aid.
    24. Re:Frist Psot? by Hognoxious · · Score: 1

      My faith in humanity[1] is restored [2]. [1] at least the subset that lives in underground sub-dwellings owned by the maternal parentical unit. [2] well actually it isn't. Life is shit.

      --
      Confucius say, "Find worm in apple - bad. Find half a worm - worse."
  3. hm by pele · · Score: 0, Troll

    your april fools jokes are getting dumber and dumber every year

    1. Re:hm by corvair2k1 · · Score: 1

      So submit a better one... I'm sure that these are driven by user submissions just like always.

    2. Re:hm by el+americano · · Score: 1

      On second thought, please don't. We've had enough for one year.

      --
      Those are my principles. If you don't like them I have others. -Groucho Marx
    3. Re:hm by Anonymous Coward · · Score: 0

      >your april fools jokes are getting dumber and dumber every year

      They wanted to make sure you'd be able to recognize them.

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

    But I kept on getting scratched...

    1. Re:I tried mastering cat. by verbalcontract · · Score: 1, Informative

      But I kept on getting scratched...

      Next time try piping to /dev/null.

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

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

    3. Re:I tried mastering cat. by An+ominous+Cow+art · · Score: 1

      Woulds have been funnier if the author were "Claude Bawls", per the joke.

  5. The Story About Ping by Anonymous Coward · · Score: 0

    I'll put it right next to "The Story About Ping" http://www.amazon.com/Story-About-Ping-Marjorie-Flack/dp/0140502416

  6. hmmm by Em+Emalb · · Score: 1

    man cat

    http://www.youtube.com/watch?v=Ex42OGGarrE

    Usage: Not used. EVER. Run. Fast and far. QUICKLY.

    --
    Sent from your iPad.
  7. I am not reading any more Slashdot until by GlobalColding · · Score: 1, Insightful

    April 1st is over. Even under normal circumstances it is hard to judge seriousness of typical Slashdot posts, but today, I simply refuse to participate in filtering out April Fools detritus from the usual. I am going to get on my Amiga 2000 and play Giana Sisters. That is all.

    1. Re:I am not reading any more Slashdot until by Em+Emalb · · Score: 1, Funny

      Dear Sir or Madame, (if you are a madame, please respond with little black book, kthxbai)

      Your frustration with the article posting selection with regards to the date of April 1st, 2009 has been noted.

      Please understand that the most amusing thing to the majority of us is people who come to a site VOLUNTARILY on today's date knowing full well that the site will be filled with goofy articles and comments, some amusing, most not. However, your apparent frustration has been duly noted and will be filed with the appropriate authorities. Please be patient, as it can take up to several leap years for your complaint to be handled.

      Have a pleasant day, and for God's sake, upgrade to a current gaming console, this isn't 1986.

      Yours,

      Cletedius P Moran
      HMFIC
      Slashdot Complaints Department
      1st Marine Forces Expeditionary Unit
      Baghdad, Iraq
      888-867-5309

      --
      Sent from your iPad.
    2. Re:I am not reading any more Slashdot until by Anonymous Coward · · Score: 0

      So, are you really going to play Giana Sisters or is this another April Fool's joke?

  8. 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.
    2. Re:Damn. by RobBebop · · Score: 1

      Mod parent Insightful. His link explains how to Master Lolcat.

      --
      Support the 30 Hour Work Week!!!
    3. Re:Damn. by Henry+Pate · · Score: 1
      Not to be confused with LOLCODE. Here's an Hello-World example taken from their site.

      HAI
      CAN HAS STDIO?
      VISIBLE "HAI WORLD!"
      KTHXBYE

      --
      Si Hoc Legere Scis Nimium Eruditionis Habes
    4. Re:Damn. by momerath2003 · · Score: 1

      Honestly, I never would have expected a +4 informative for linking to a page full of lolspeak. /shrug

      --
      I had but a simple dream, to destroy all humans.
    5. Re:Damn. by SwabTheDeck · · Score: 1

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

      Feh! Everyone knows that "lolcat" is just a symlink to "cat --lol".

  9. Re:god by cha0zmag3 · · Score: 0

    This is about the worst day of the year. Thankfully nobody in my office celebrates this. AT ALL.

  10. Forget Cat, SQUEEZ BACON!!! by Anonymous Coward · · Score: 0

    Much more interesting is this new product from thinkgeek, known as squeez bacon.

    Squeez-Bacon

    It's the worlds most perfect food.

  11. Master by Hogwash+McFly · · Score: 3, Insightful

    You can't master any cat, only dogs. As the saying goes - dogs have masters, cats have staff.

    --
    Mother, do you think they'll like this sig?
    1. Re:Master by dargaud · · Score: 1
      $ cat --help | wc -l
      23
      $ dog --help | wc -l
      43

      It seems like there are many more ways to manage a dog than a cat... No surprise here.

      --
      Non-Linux Penguins ?
  12. 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.

    2. Re:How hard is it to get CAT to work with HURD? by Binestar · · Score: 1

      Bravo!

      --
      Do you Gentoo!?
    3. Re:How hard is it to get CAT to work with HURD? by morgan_greywolf · · Score: 0

      When building cat, you have to enable support for tunefs. Try passing the --with-tunefs to configure during the build process on Hurd.

    4. Re:How hard is it to get CAT to work with HURD? by kybur · · Score: 1

      Nonono, pipes won't work at all. What you need are tubes... A series of them.

  13. 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?

    2. Re:O HAI by TheSync · · Score: 1

      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.

    3. Re:O HAI by SwabTheDeck · · Score: 1

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

      lolz, dis iz teh astroturfingz.

  14. finally by Lord+Ender · · Score: 1

    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.

    --
    A slashdotter who didn't build his own computer is like a Jedi who didn't build his own lightsaber.
    1. Re:finally by Hierarch · · Score: 1

      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.

      --
      --Somebody infect me with a .sig virus, I'm too lazy to write my own!
  15. This isn't even a good joke by notarockstar1979 · · Score: 0, Troll

    Unlike a lot of people around here I have really enjoyed today's April Fool's jokes. However, this is just lazy.

    1. Re:This isn't even a good joke by KarateBob · · Score: 1

      I agree

    2. Re:This isn't even a good joke by Smivs · · Score: 1

      It's better than mine, which is truly lame, and plugging it here is the only way I'll get any hits!

  16. I just /usr/bin/cat my coffee everywhere. by Mr.+Flibble · · Score: 2, 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...) ;)

    --
    Try to hack my 31337 firewall!
    1. 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
    2. Re:I just /usr/bin/cat my coffee everywhere. by Anonymous Coward · · Score: 0

      It is bad Unix! (If you don't know why, read the non-existent book on cat...) ;)

      Or Wikipedia:

      http://en.wikipedia.org/wiki/Cat_(Unix)#Useless_use_of_cat

    3. Re:I just /usr/bin/cat my coffee everywhere. by TheRaven64 · · Score: 2, Informative
      The correct general way of doing it (which works for all values of grep) is:

      $ grep bar < foo

      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, adds a load of unnecessary write()s and adds a lot of copying that is otherwise unneeded.

      --
      I am TheRaven on Soylent News
    4. Re:I just /usr/bin/cat my coffee everywhere. by arth1 · · Score: 1

      There are situations where you can't use a redirect, but have to rely on cat and pipes.
      Like for instance, file copying a file to a system that doesn't have an sftp-server:

      cat filename | ssh hostname "cat - >filename"

    5. Re:I just /usr/bin/cat my coffee everywhere. by TheRaven64 · · Score: 1
      In this example, you only need one cat, not two:

      ssh hostname "cat - >filename" < filename

      --
      I am TheRaven on Soylent News
    6. Re:I just /usr/bin/cat my coffee everywhere. by Anonymous Coward · · Score: 0

      I do that quite often, but I have a good excuse. It usually follows this pattern:

      $ cat file .... ....
      [pages of stuff] .... ....
      $ cat file | grep blarg

      The second command comes from the up arrow, and the first cat is to get a sense of what is in the file (e.g what format it is, which can affect what my regex will be). If I know in advance exactly what I'm searching for, I don't do it.

    7. Re:I just /usr/bin/cat my coffee everywhere. by bar-agent · · Score: 1

      The computer exists to serve you, not the other way around...

      No! Don't you see? It's a cookbook!

      --
      i'd hit it so hard, if you pulled me out you'd be the king of britain [bash.org]
    8. Re:I just /usr/bin/cat my coffee everywhere. by arth1 · · Score: 1

      True, but it's trivial to come up with examples where it's needed:

      rsh host1 "cat filename" | rsh host2 "cat - >filename"

      In short, cat can be quite useful in its simplicity.

      Even in shell scripts, I too often see constructs like:

      echo -n "Starting job at "
      date
      echo "----"
      echo "Eenie meenie"
      echo " minie moe"
      echo "Catch a tiger"
      echo " by the toe"
      echo "----" ... which could easily be replaced by a cat:

      cat EOT ;
      Starting job at $(date)
      ----
      Eenie meenie
        minie moe
      Catch a tiger
        by the toe
      ----
      EOT

      It's time someone speaks up for underused commands like cat, at, dc, tee, seq and others that can be quite useful in a standard sysadmin arsenal. And cut down on the overuse of others, like echo, and, dare I say it, sudo.

    9. Re:I just /usr/bin/cat my coffee everywhere. by arth1 · · Score: 1

      Argh. The Slashdot reformatter strikes again.
      Insert two less-than signs before the first EOT in the above... :-)

  17. In the news today, a group of IT professionals ... by Phizzle · · Score: 3, Funny

    were found dead. Apparently they were playing a drinking game, and doing a shot for every lolcats reference on Slashdot.

    --
    I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered. My life is my own.
  18. Giana Sisters by Tetsujin · · Score: 1

    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 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?

    --
    Bow-ties are cool.
    1. Re:Giana Sisters by Anonymous Coward · · Score: 0

      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 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?

      most chiptunes don't work as well when converted to a fuller sound. They were composed with their hardware in mind.

  19. Stop it with the bitching already! by Cerberus7 · · Score: 0

    Oh, for cryin' out loud, can't we have a simple day of gags without all this whining and bitching? Even people tagging stories are having a fit.

    It's April Fool's Day. Slashdot has a long tradition of doing stupid crap on this day. Either enjoy it for what it is, or turn off the Intertubes and go do something else until tomorrow. Just stop f-ing bitching and moaning about it like it's seriously messing up your day.

    --
    I don't know about you, but my servers run on the power of cotton candy and happy thoughts. -Anonymous Coward
    1. Re:Stop it with the bitching already! by s_mencer · · Score: 1

      All the people bitching about the April 1st content should:

      cat > senseOfHumor [enter key]
      I didn't use '>>' because I wasn't worried about overwriting an existing file. [enter key]

  20. 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 upside · · Score: 1

      And by "you" I mean the reader, not the parent poster. ;)

      --
      I'm sorry if I haven't offended anyone
    4. 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.
    5. Re:Neuter to decrease aggression by wonmon · · Score: 3, Funny

      Honestly, I used rm -r because I was thinking that ball1 and ball2 (and sometimes ball3) would be subdirectories, each containing millions of incomplete cat executables.

    6. Re:Neuter to decrease aggression by Anonymous Coward · · 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

    7. Re:Neuter to decrease aggression by jbeaupre · · Score: 1

      I sincerely hope you don't have user privileges with cat's testes.

      --
      The world is made by those who show up for the job.
    8. Re:Neuter to decrease aggression by Anonymous Coward · · Score: 0

      Who's - yours or the cat's? I'm sure that cat might have an opinion.

    9. Re:Neuter to decrease aggression by Tavor · · Score: 1

      Also recommended: rm -rf front_claws

      --
      Windows has detected an undetectable error.
    10. Re:Neuter to decrease aggression by Anonymous Coward · · Score: 0

      no it's cat testes > /del/null

    11. Re:Neuter to decrease aggression by megaditto · · Score: 3, 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.

      --
      Obama likes poor people so much, he wants to make more of them.
    12. Re:Neuter to decrease aggression by Anonymous Coward · · Score: 0

      Wouldn't the dir be "scrotum"?

    13. Re:Neuter to decrease aggression by Znupi · · Score: 1

      -f I can see, but -r?! What kind of cat to you have that you need to recurisvely remove testes? o.0

      Well, they have two of them, don't they? And you must make sure you remove both at the same time!

    14. Re:Neuter to decrease aggression by Tubal-Cain · · Score: 1

      You'd be surprised how well they wield the back pair.

    15. Re:Neuter to decrease aggression by Hurricane78 · · Score: 1

      So it's CATS all the way down! I KNEW it!

      --
      Any sufficiently advanced intelligence is indistinguishable from stupidity.
    16. Re:Neuter to decrease aggression by Hurricane78 · · Score: 1

      Yeah. Let's try that with your nails too. Just rip them off. And your balls too.
      Nice isn't it? Your long and enduring pain is so worth my little convenience of being a total pussy about cat scratches and the toootal stress of letting your cat out to find love.

      --
      Any sufficiently advanced intelligence is indistinguishable from stupidity.
    17. Re:Neuter to decrease aggression by MR.Mic · · Score: 1

      if they aren't nested, you can simply use a wildcard.

    18. Re:Neuter to decrease aggression by laejoh · · Score: 1

      How are you gentlemen!!

      All your base are belong to us.

      You are on the way to destruction.

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

    1. Re:Still Waiting by Wildcat+J · · Score: 1

      I'm still waiting for "Mastering true" and "Mastering false".

      It's funny that you should mention that. I don't remember how I stumbled upon it, but here you go: http://www.miketaylor.org.uk/tech/oreilly/truenut.html

    2. Re:Still Waiting by TwistedSymmetry · · Score: 1

      They're working on a "Mastering yes" book, but I hear they're having trouble finishing it.

  22. I use... by Skiron · · Score: 1

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

    1. 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.
    2. Re:I use... by eXonyte · · Score: 2, Funny

      Funny, I never realized that Schroeder had a cat...

    3. Re:I use... by Mattintosh · · Score: 1

      Watch out, he might start using a Heisenberg Compensator. 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.

    4. Re:I use... by saforrest · · Score: 1

      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.

    5. Re:I use... by kybur · · Score: 1

      I had a QM professor named Schroeder in grad school. Maybe the parent did too. That joke came up more than once.

    6. Re:I use... by Tetsujin · · Score: 3, 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!)

      --
      Bow-ties are cool.
    7. Re:I use... by Sulix · · Score: 1

      It's better to say touche. Touché is too cliche.

    8. Re:I use... by MichaelSmith · · Score: 1

      I don't recall observing one.

    9. Re:I use... by Seriousity · · Score: 1

      Don't be such a douché.

      --
      This post was made in complete sincere seriousity; as such any attempts to derive humour are doomed to instant failure.
  23. It took 2 Programmers! by jellomizer · · Score: 1

    AUTHOR
                  Written by Torbjorn Granlund and Richard M. Stallman.

    My guess is Torbjorn Granlund coded it and RMS takes the credit

    --
    If something is so important that you feel the need to post it on the internet... It probably isn't that important.
  24. Well done by bulletman · · Score: 1

    Funny writing. It was obviously a joke, but the concept was so funny that knowing this going in didn't change anything.

  25. Rings too true by mewsenews · · Score: 1

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

    1. Re:Rings too true by anothy · · Score: 1

      give the gnu folks some time to add more options. you really will need a separate manual eventually. they'll incorporate most of the uses in the interview as --prepend-input or --bookend-input. right before they make the man page just point to the info page, and start adding networking support like the stupid gnu awk has.

      my cat, from Plan 9, has 0 options. cat concatenates files. end of story.

      --

      i speak for myself and those who like what i say.
    2. Re:Rings too true by mewsenews · · Score: 1

      haha, i wouldn't doubt it.

  26. 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 wonmon · · Score: 1

      :(

      I have trouble even getting "touch" to work

    3. Re:I'm more intersted in tail than cat. by jlowe · · Score: 1

      Well... mastering "cat" does fall along the same lines.

    4. Re:I'm more intersted in tail than cat. by A+Commentor · · Score: 1
      Did you even look:

      $ which tail

      /usr/bin/tail

      And for info...

      $ man tail

      TAIL(1) BSD General Commands Manual TAIL(1)

      NAME

      tail -- display the last part of a file

      --

      Looking for any old 8-bit Heathkit/Zenith software/hardware - http://heathkit.garlanger.com

    5. Re:I'm more intersted in tail than cat. by Maxo-Texas · · Score: 1

      Lol.

      I'd "whoosh" you... but I suspect someone would "whoosh" me then for some reason I don't get.

      --
      She was like chocolate when she drank... semi-sweet at first and then increasingly bitter.
    6. Re:I'm more intersted in tail than cat. by Just+Some+Guy · · Score: 3, Funny

      Alternatively, you could master head. I hear there's demand for it in certain log processing circles.

      --
      Dewey, what part of this looks like authorities should be involved?
    7. Re:I'm more intersted in tail than cat. by fwice · · Score: 5, Funny

      >---joke--->

         O
        \|/    <--- you
        / \

      WHOOSH

    8. Re:I'm more intersted in tail than cat. by SpottedKuh · · Score: 1

      $ man tail

      I think he may have been looking for the other kind.

    9. Re:I'm more intersted in tail than cat. by Anonymous Coward · · Score: 0

      Well I hate to (/bin/)bash you, but (/sbin/)fsck that. I'd much rather (/usr/bin/)find some (/usr/bin/)tail than 'master' (/usr/bin/)head. Of course, (/usr/bin/)bc the majority of us reading this are stereotypical slashdotters, we'd be (/bin/)more or (/usr/bin/)less inclined to (/usr/bin/)gawk if we got either, rather than (/usr/bin/)join in.

      I guess given that the content of this posting isn't every (/usr/bin/)nice, someone will probably going to (/usr/bin/)make sure that this ends up with quite a low rating. Way to (/usr/bin/)killall of the fun.

    10. Re:I'm more intersted in tail than cat. by A+Commentor · · Score: 1
      No shit Sherlock... You do know the concept of taking the joke a little farther?

      DOUBLE WHOOOOSH

      --

      Looking for any old 8-bit Heathkit/Zenith software/hardware - http://heathkit.garlanger.com

    11. Re:I'm more intersted in tail than cat. by Anonymous Coward · · Score: 0

      Usually, taking a joke a little farther means "adding something *funny*."

    12. Re:I'm more intersted in tail than cat. by ArsonSmith · · Score: 1

      # info tail?

      --
      Paying taxes to buy civilization is like paying a hooker to buy love.
    13. Re:I'm more intersted in tail than cat. by Anonymous Coward · · Score: 0

      >---joke--->

        O
        \|/ <--- you
        / \

      WHOOSH

      >---joke--->

            O
          \|/ <--- fwice
          / \

      WHOOSH

    14. Re:I'm more intersted in tail than cat. by Anonymous Coward · · Score: 0

      >---joke--->

            O
          \|/ --- you
          / \

      WHOOSH

      The joke didn't go over his head, his reply went over yours.

    15. Re:I'm more intersted in tail than cat. by RussianPhysicist · · Score: 1

      Coming soon to your nearest bookstore:

      • "The art of touch"
      • "kill HOWTO by Hans Reiser"
      • "sleep in a nutshell"
      • "First date for dummies"
      • "bash: the martial arts basics"
    16. Re:I'm more intersted in tail than cat. by Anonymous Coward · · Score: 0

      I am terrified to think of the implications if the parent /did/ get the joke... log processing circles? oh my.

  27. C'mon, it's been done already by k2dbk · · Score: 1

    How will this ever outsell the wildly popular "Cat for Dummies"?

  28. I *want* one! by Spazmania · · Score: 0

    It would be a great laugh when someone stops by to borrow one of my other books.

    --
    Moderating "-1, Disagree" is simple censorship. Have the guts to post your opinion.
  29. 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
    ~#

    1. Re:Here goes: by morgan_greywolf · · 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/ | 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/ | cat humortest.txt - | grep $somethingfunny

    2. Re:Here goes: by IceCreamGuy · · Score: 2, Funny

      I know, I wrote that all out, and then I was like "wait, shit, I can just grep it right from the links2 output." So I wrote it on one line... but then I realized I wasn't using cat anymore and it ruined the joke. Please don't judge me!

      P.S. thanks for introducing me to the phrase "UUOC," now I have something funny to read!

    3. Re:Here goes: by Anonymous Coward · · Score: 0

      ~# cat humortest.txt | grep $somethingfunny

      Pipe abuse!

    4. Re:Here goes: by mattack2 · · Score: 1

      Specifically (to save google a few processes.. heh)..

      http://www.websters-dictionary-online.org/definition/UUOC

    5. Re:Here goes: by curunir · · Score: 3, 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/ | 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 blame me, I voted for Kodos!"
  30. Geeks shouldn't do marketing by chill · · Score: 0, Troll

    Had they titled this book "Mastering Pussy (cat)" they would've probably made the NY Times Best Seller list.

    --
    Learning HOW to think is more important than learning WHAT to think.
    1. Re:Geeks shouldn't do marketing by Tavor · · Score: 1

      And Slashdot users would be terminally confused.

      --
      Windows has detected an undetectable error.
  31. Talk to the guys at by wiredog · · Score: 2, Funny

    EDS.

  32. Don't joke about that. by GoNINzo · · Score: 1
    You can joke about mastering cat. hah hah. funny. sure.

    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.

    --
    Gonzo Granzeau
    "Nothing the god of biomechanics wouldn't let you into heaven for.." -Roy Batty
  33. This really isn't that unrealistic by FreakerSFX · · Score: 1

    Many discussions between real nerds about seemingly trivial OS topics have gone on for far more than book-length of obscure, historical and political commentary. I sort of find it humbling how much history there is for a lot of the components of UNIX.

    I am inclined to stay out of these conversations. I never advertise my point of view because I can't be bothered to try and convert the evangelists to my point of view. I won't convince them, they won't convince me; we'd just end up annoying co-workers and further marginalizing ourselves socially at work.

    --
    This sig contains a manual self-destruct. Kindly please put your foot through your monitor in 8 seconds.
  34. 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
  35. dog link is broken by Olaf+Underbridge · · Score: 1

    <http://jl.photodex.com/dog/>, the link given for the
    dog program, is broken, and the first Google hit
    seeking a replacement is unresponsive (probably /.ted).

    However, <http://manpagehelp.net/manpage/linux/man1/dog.html>
    gives a good overview.

    Debian/Ubuntu: sudo apt-get install dog
    Gentoo:        sudo emerge sys-apps/dog

    --
    slashdottagsshorterthanhaikunewartform
  36. Great Book! by LaminatorX · · Score: 1

    I much prefer Mastering cat to Teach Yourself cat in 24 Hours.

  37. 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.
    1. Re:Upcoming second edition in 2012 by jefu · · Score: 1

      You forgot : "cat" as a monad injection tool (which is the oft-belittled UUOC).

    2. Re:Upcoming second edition in 2012 by iris-n · · Score: 1

      I sincerely hope so. Countless times I've seen my students forgeting all the good manners of using object-oriented cat, like in this shameless UUOC:


      n00b@nix:~/bin$cat >> cat.cpp
      #include <iostream>
      #include <string>
      main(){
      std::string a;
      while(42){std::cin>>a;std::cout<<a<<'\n';}}
      ^C
      n00b@nix:~/bin$cat cat.cpp | g++ -o cat
      n00b@nix:~/bin$cat >> dog.cpp

      --
      entropy happens
  38. cat? by Anonymous Coward · · Score: 0

    I'm still trying to get the hang of cd!

  39. But... by cstdenis · · Score: 4, Funny

    it's not even Caturday yet.

    --
    1984 was not supposed to be an instruction manual.
  40. Must be rubbish, no mention of tac... by weeble · · Score: 1

    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.

    --
    Slashdot Beta should die a painful death.
  41. Cat tin cans by Anonymous Coward · · Score: 0

    Cat cannot open tin cans.

  42. Donkey Ears by lazy_playboy · · Score: 1

    It's gone midday. Donkey ears for you.

  43. Using mouse to master cat by AliasMarlowe · · Score: 1, Redundant

    'nuff said, check today's date.

    --
    Those who can make you believe absurdities can make you commit atrocities. - Voltaire
    1. Re:Using mouse to master cat by rhyder128k · · Score: 1

      I know for a fact that Universal optioned the rights to this book. Unfortunately, Paramount had entered post-production for Echo: The Movie! so I don't think that Universal are going to pursue it. As long as it stays true to the dark themes of the original, I don't care what file command movie gets made. If it's a origins story, we'll probably get to see Edlin. Kevin Spacey, anyone?

      --
      Michael Reed, freelance tech writer.
  44. Re:god by MyLongNickName · · Score: 1

    leave /. for the day

    But.... I'm working on 12 points in my consecutive days on Slashdot achievement.

    --
    See my journal for slashdot ID's by year. Mine created in 2005. http://slashdot.org/journal/289875/slashdot-ids-by-year
  45. Re:god by Anonymous Coward · · Score: 0

    isn't this day over yet?!

    No, and this place won't return to what ever sliver of sanity sanity it normally has until it is the 2nd of April everywhere on the planet.

  46. In case you were wondering what the book's like... by Anonymous Coward · · Score: 2, Funny

    here's a what a simple cat implementation looks like (The book leeaves additional features as an exercise to the reader):

    HAI
    CAN HAS STDIO?
    I HAZ A VAR
    MAEK ARGV[1] A TROOF, O RLY?
      YA RLY, VAR R ARGV[1]
      NO WAI, VAR R "STDIN"
    OIC
    PLZ OPEN FILE VAR?
      AWSUM THX
          IM IN YR FILE EATING UR LINES
        VISIBLE LINES
          IM OUTTA UR FILE
      KTHX
      O NOES
          INVISIBLE "ERROR!"
    KTHXBYE

  47. can't wait for the sequel.. by midnightclimax · · Score: 1

    "mastering tac". uhhuhu.

  48. Giana Sisters RULES! by Anonymous Coward · · Score: 0

    Best SID sound ever. Someone give him an UNDERRATED mod up pls!

  49. Catting Cat by Chlorine+Trifluoride · · Score: 1

    cat Mastering\ Cat.pdf > /dev/null

  50. But seriously by Sloppy · · Score: 2, Informative

    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 (!).

    I've done that.

    --
    As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
    1. Re:But seriously by Anonymous Coward · · Score: 0

      Why is using perl for that surprising?
      perl -pli -e'print"This would be the first line"if$.==1' myfile.txt
      looks shorter to me and doesn't involve creating a temp file. ;)

    2. Re:But seriously by Sloppy · · Score: 1

      Actually, I wasn't even looking at the rest of the pipe where he creates a temp file. I just meant that I've use awk for doing nothing other than prepending/appending a line of text to a stream, e.g.
      awk 'BEGIN { print "hello" } { print $0 }'
      Kind of overkill. Oh, and by the way, perl is disgusting.

      --
      As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
  51. awesomeness by Satanboy · · Score: 1

    This was a good one!

    We now need a book on Mastering SUDO . . .

  52. I'm holding out... by MoreDruid · · Score: 1
    I'm holding out for next year's title: tac

    there must be more to that than cat spelled backwards

    --
    The best weapon of a dictatorship is secrecy, but the best weapon of a democracy should be the weapon of openness.
  53. I guess we're lucky by DigitalReverend · · Score: 1

    that there isn't a command or language called BATE. Of course most of the people here wouldn't need a manual for that.

    --
    I read Slashdot for the headlines, because the headlines, unlike the articles, are usually original and never duplicated
    1. Re:I guess we're lucky by Anonymous Coward · · Score: 0
  54. The beginning of a new serie by gmuslera · · Score: 1

    This book will become part of a new O'Reilly serie. The other books will be

    touch cookbook
    Running grep
    Practical uniq Management
    Advanced fsck for system administrators
    |: The missing manual

    1. Re:The beginning of a new serie by Rick+Genter · · Score: 1

      You left off my favorite:

      Advanced yes

      --
      Don't underestimate the power of The Source
  55. Re:god by Patch86 · · Score: 1

    Except that all the other flipping news websites and blogs are at it too...

    Bloody everything...

  56. Video Link by Anonymous Coward · · Score: 0

    The story submitter missed out on the video link to the interview. http://www.youtube.com/watch?v=oHg5SJYRHA0

  57. 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.)

    1. Re:Wrong cover by dlsmith · · Score: 1
    2. Re:Wrong cover by quarterbuck · · Score: 1

      Actually I think the picture on that page is of a Lynx. http://en.wikipedia.org/wiki/Lynx

      --
      http://slashdot.org/submission/1062723/Cheap-mobile-data-plan?art_pos=2
    3. Re:Wrong cover by Anonymous Coward · · Score: 0

      Actually, maybe they'd throw a curve ball ...

      http://oreilly.com/catalog/9780596516499/index.html

  58. man man by hansamurai · · Score: 1

    The other day I tried to bring up the man page of man, and it didn't have one. I was sad.

    1. Re:man man by makomk · · Score: 1

      It should do, you just need to make sure you have the manpages installed.

  59. OMG! KITTENS by mdsolar · · Score: 1

    This purrfect for today.

  60. Cat is useful. Really. by Anonymous Coward · · Score: 1, Informative

    These jokes are becoming lame, but cat is definitely one useful tool.

    Well, I'm sure they can come up with an OReilly cookbook for cat. Cat is handy in a lot of situations. Consider these:

    Concatenating the output of two PS files. Then you can merge two documents together into a single PDF.
    Concatenating your .signature to an email message, useful in scripts.
    Concatenating your self-extracting executable to its' data.
    Using cat to pipe data into multiple filters all at once, without needing temporary disk space.

    I wouldn't be surprised if there was such a book at all.

  61. what are you talking about? by nobodylocalhost · · Score: 1

    Everyday's Caturday.

    --
    Where is the "Ignorant" mod tag?
  62. A real cat tip by TechwoIf · · Score: 1
    To do a simple config change that requires adding a file but don't want to go though the entire process of creating a patch file. One can do this within the shell script.

    cat << EOF > /etc/udev/rules.d/91-spacenavigator.rules
    KERNEL=="event[0-9]*", SYSFS{idVendor}=="046d", SYSFS{idProduct}=="c603", SYMLINK+="input/spacemouse", GROUP="plugdev", MODE="664"
    KERNEL=="event[0-9]*", SYSFS{idVendor}=="046d", SYSFS{idProduct}=="c623", SYMLINK+="input/spacetraveler", GROUP="plugdev", MODE="664"
    KERNEL=="event[0-9]*", SYSFS{idVendor}=="046d", SYSFS{idProduct}=="c626", SYMLINK+="input/spacenavigator", GROUP="plugdev", MODE="664"
    EOF

    The "ecode" is adding extra lines in there.

    1. Re:A real cat tip by goarilla · · Score: 1
      lol i usually do it slightly different

      cat > /etc/resolv.conf << eof
      domain="domain"
      nameserver=ns1...
      nameserver=ns2..
      eof

      i had to write a script to do this cause for some
      reason fedora keeps breaking itself after updates
      and dhcp and networkmanager suddenly became unuseable

  63. Misreading Title (was:I tried mastering cat) by Anonymous Coward · · Score: 1, Funny

    But I kept on getting scratched...

    That's probably because you misread the title as masturbating when it should have been mastering. (Sorry, it had to be said.)

  64. Good luck by roystgnr · · Score: 1

    I've been told that Hurding cats is like trying to control large numbers of some sort of small obstinate animal.

  65. It's 2009! by recharged95 · · Score: 1

    Come on, it's 2009, shouldn't it be 'Mastering lolcat'?

  66. No no by roystgnr · · Score: 1

    The Libertarians want you to realize that people can efficiently and honorably Haz their own Cheezeburgers. The allegories are subtle: you can rely on the Invisible Hand of the market to bring your Invisible Sandwich, and you can do it all without empowering the dangerous surveillance state metaphorically represented by Ceiling Cat Watching You.

  67. Already Reading by DevCybiko · · Score: 1

    I couldn't find it on either Amazon (for my Kindle) or on O'Reilly. But I got a lot out of the article. I was surprised that he didn't include versions for Linux, but maybe that's in another edition of the book.

  68. Jesus Christ by Anonymous Coward · · Score: 0

    I'm a bit confused about the fact that there is a lynx at the cover cover of this book. I think that maybe a cat would suit much better.

  69. i prefer polecat by pak9rabid · · Score: 1

    sylar:~$ polecat how_to_get_rid_of_skunks.txt
    bash: polecat: i hate you

  70. Iknowallaboutcat.I'vebeenusingcatforquitesometime. by b4dc0d3r · · Score: 1

    Thisbookisveryhelpfulbutmissingaveryimportantchapterinmyopinion.Iusecatoneverythingnow,it'slikemyownmini-vi,ormini-emacsforthoseofyouwholikeemacs.Ihaven'treadeverychapteryet-Ireadalittleslowly.ButonedayIwillbeacompletemasterofcat.Catmaster,that'swhattheywillcallme.

  71. meow by Anonymous Coward · · Score: 0

    meow... meow meow meow meow miao Mew.

  72. So... by PPH · · Score: 1

    ...what's the pix on the cover? A dog?

    --
    Have gnu, will travel.
  73. Re:god by Anonymous Coward · · Score: 0

    Your point was valid until you insinuated that there are people in this universe that actually enjoy this lame joke clusterfuck.

  74. In all seriousness... by Ross+Finlayson · · Score: 1

    I wish people would 'master' "cat" enough to know when *not* to use it. For example, I'm tired of seeing
    cat filename | application
    instead of (shorter, and more efficient):
    application < filename

  75. let me know whey they publish "Herding Cats." by swschrad · · Score: 1

    for in such there is a lot of money to be made.

    all that happens when I "cat furry" is I get bit on my machine.

    --
    if this is supposed to be a new economy, how come they still want my old fashioned money?
  76. Re:god by Anonymous Coward · · Score: 0

    leave /. for the day

    That's possible ?

  77. predictable by ascari · · Score: 1

    Did you expect any less from the folks that publish make magazine? (Two UNIX command references in one sentence! I win! We can all go home now.)

  78. obscurix by sbeckstead · · Score: 2, Funny

    I tried
    schroedinger>mkdir /box
    then
    schroedinger>mv cat /box
    Then when I went to look in /box
    schroedinger>ls /box I found two files...
    cat cat.dead
    it's not in the manual...

  79. Next up... by tehBoris · · Score: 1

    Mastering yes.

  80. next book is a guide to fishing lures by vaporland · · Score: 1

    master baiting

    --
    Ask Me About... The 80's!
  81. coming up next .. by Anonymous Coward · · Score: 0

    http://img261.imageshack.us/img261/4691/masteringtruecover.jpg

    I am excited to see that.

  82. Re:god by sgant · · Score: 1

    The only thing annoying about this day is all the idiots with no sense of humor saying "make it stop" or "isn't this day over yet".

    Seriously, remove the sticks that are up your asses and lighten the hell up.

    --

    "Leo Fender was in a 'state of grace' when he designed the Stratocaster." -- Paul Reed Smith
  83. Re:god by Anonymous Coward · · Score: 0

    leave /. for the day. It won't kill you.

    Speak for yourself.

  84. How about "Getting a Grep On Your Log..." by FireStorm69 · · Score: 1

    Getting a Grep On Your Log: 101 Ways to Maximize Your Log Usage

    You will need to have a firm grasp on tail and head as well as know the difference between less and more in order to truly master your log.

    Caution should be used when using cat on your log as it could damage your log permanately (sharp claws and teeth, OUCH!)

    --
    In a mad world, only the mad are sane!