Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

cat considered harmful

Name: 名無 2010-06-21 7:53

Exhibit One:

cat somefile.txt | grep something
Use of cat is redundant.

Exhibit Two:

cat /dev/random > /dev/dsp
Use of cat is destructive to audio equipment.

Exhibit Three:

http://icanhascheezburger.com
Pictorial depictions of catS are detrimental to productivity and intelligence.

Ergo, ipso facto, cat is considered harmful.

Name: Anonymous 2010-06-21 8:12

no exceptions

Name: Anonymous 2010-06-21 9:05

I don't understand why the elite don't just use
grep something < somefile.txt

Name: Anonymous 2010-06-21 9:26

$ cat a.txt b.txt > c.txt
$ cat a.txt (yes, I know about less. No, I won't use it -- my terminal supports scrolling)
$ { a; b; cat data.txt; c; } | d (you got nothing on this)

Name: Anonymous 2010-06-21 9:53

>>3
Because the same can be achieved with grep something somefile.txt

Name: Anonymous 2010-06-21 11:54

>>4
The first is the only legitimate use of cat. The second demonstrates that you don't know what less actually does.

Name: Anonymous 2010-06-21 12:11

cat - concatenate files and print on the standard output

Name: Anonymous 2010-06-21 12:24

$ cat | cowsay
i like cat
 ____________
< i like cat >
 ------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
$

Name: Anonymous 2010-06-21 13:50

>>6
Using less on a remote session can be quite painful. cat with a proper scrolling terminal is way more useful in this scenario.

Also, less is stupid for small files.

Name: Anonymous 2010-06-21 17:04

don't use cat when dd will suffice

Name: Anonymous 2010-06-21 17:45

C:\>notepad.exe nya.txt

Name: Anonymous 2010-06-21 18:18

$ tablecatsay your gay
          ∧_∧   / ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
          ( ´∀`) < Your gay
        /    |    \________
       /       .|     
       / "⌒ヽ |.イ |
   __ |   .ノ | || |__
  .    ノく__つ∪∪   \
   _((_________\
    ̄ ̄ヽつ ̄ ̄ ̄ ̄ ̄ ̄ | | ̄
   ___________| |
    ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄| |

$

Name: Anonymous 2010-06-21 18:35

>> 9

Only if you're still using a 56kbs modem.

Save up your allowance, kid and pay for broadband, k?

Name: Anonymous 2010-06-21 18:37

There are multiple signs that suggest you don't know what you're talking about, >>13.

Name: how about FUCK YOU?? 2010-06-21 18:48

>>14
Dicks, dicks everywhere

Name: Anonymous 2010-06-21 18:48

$ tablecatsay my gay?
          ∧_∧   / ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
          ( ´∀`) < my gay?
        /    |    \________
       /       .|     
       / "⌒ヽ |.イ |
   __ |   .ノ | || |__
  .    ノく__つ∪∪   \
   _((_________\
    ̄ ̄ヽつ ̄ ̄ ̄ ̄ ̄ ̄ | | ̄
   ___________| |
    ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄| |
$

Name: Anonymous 2010-06-21 18:50

>>6
What about the third? I bet you can't say anything against the third.

Name: Anonymous 2010-06-21 19:35

$ tablecatsay His gay[i]![/i]
          ∧_∧   / ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
          ( ´∀`) < His gay!
        /    |    \________
       /       .|     
       / "⌒ヽ |.イ |
   __ |   .ノ | || |__
  .    ノく__つ∪∪   \
   _((_________\
    ̄ ̄ヽつ ̄ ̄ ̄ ̄ ̄ ̄ | | ̄
   ___________| |
    ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄| |

$

Name: Anonymous 2010-06-21 19:39

./helloworld | cat

Name: Anonymous 2010-06-21 20:05

Using cat to read files without concatenating them seems unintuitive. Isn't there another program in coreutils for just reading files (not "more" or "less")?

Name: Anonymous 2010-06-21 20:08

>>20
read(){ cat $1}

Name: Anonymous 2010-06-21 20:13

>>21
That's cheating.

Name: Anonymous 2010-06-21 20:17

>>20-22
read() { dd status=noxfer if=$1 2>/dev/null }

Name: Anonymous 2010-06-22 1:03

>>20
not in coreutils because gnu is shit, but vi -R (which is in posix).

Name: Anonymous 2010-06-22 1:47

>>24
vi is optional. ed is the standard.

Name: Anonymous 2010-06-22 2:41

>>25
it's only optional on shit systems:
This utility shall be provided on systems that both support the User Portability Utilities option and define the POSIX2_CHAR_TERM symbol. On other systems it is optional.
if you have such a system, use ex -R.
ed is the standard editor. it can't do what ex -R does.

Name: Anonymous 2010-06-22 3:04

cat /dev/random > /dev/dsp
Use of cat is destructive to audio equipment.
Your're right, the proper way to do that is

dd if=/dev/random of=/dev/dsp

Or, alternatively, smashing your sound card with a hammer.

Name: Anonymous 2010-06-22 3:13

>>27
using cat or dd like that is only destructive to defective, improperly installed, and/or misconfigured audio equipment.
smashing a sound card with a hammer, on the other hand, is destructive regardless of the quality, installation, and configuration of the sound card.

Name: Anonymous 2010-06-22 4:58

>>28
using cat or dd like that is only destructive to defective, improperly installed, and/or misconfigured audio equipment.
I think you found a new way to troll audiophiles. I'd love to see someone destroy a >$50k HiFi setup with platinum cables using just cat /dev/urandom > /dev/dsp.

Name: Anonymous 2010-06-22 6:23

>>platinum cables

IHBT

Name: Anonymous 2010-06-22 8:32

my other cat got ran over by my cdr

Name: Anonymous 2010-06-22 8:34

>>30
QUOTE FAILURE

IHBMT

Name: Anonymous 2010-06-22 8:40

>>28
I must agree. Not only did /dev/dsp survive both cat and dd from various garbage sources, but also did /dev/midi, which was connected to a hardware midi synthesizer. (The effect was hilarious and a bit hypnotic when /dev/urandom was used.)

Name: Anonymous 2010-06-22 8:53

>>29
Just tweak alsamixer innit.

Name: Anonymous 2010-06-22 10:09

>>30
No, it's the audiophiles who get trolled; you know that they would buy speakers with platinum-plated connectors in an instant.
I mean, they tend to buy $500 devices which don't even have on/off switches.

Name: Anonymous 2010-06-22 10:48

cat pic.jpg < archive.rar

'hidden' archive

Name: Anonymous 2010-06-22 11:58

>>36
7/10 took me quite a while to figure out what the fuck you were talking about

Name: Anonymous 2010-06-22 14:26


      A
      
      C
      A
      T
      
      I
      S
      
      F
      I
      N
      E
      
      T
      O
      O

Name: Anonymous 2010-06-22 14:36

>>36
<<*

Name: Anonymous 2010-06-22 14:39

>>36
Did you mean: copy pic.jpg+archive.rar pic2.jpg?

Name: Anonymous 2010-06-22 17:46

>>40
urdoinitrong
>>36 is doin it the proper way

you should seek to emulate his ways, grasseater

Name: Anonymous 2010-06-22 23:33

So I hear that if you cat your entire hard drive to /dev/dsp, you'll hear the music files on your drive between long periods of noise. What file format does the music have to be in?

Name: Anonymous 2010-06-23 0:02

>>42
By default it's 8 bit mono PCM, IIRC.

Name: Anonymous 2010-06-23 2:15

>>6
Did you, what, just find out about pipes and think you're only one who knows the secret? Just how from my post did you come to conclusion that I don't know what less does?

Name: Anonymous 2010-06-23 3:45

>>44
Where did this pipes bullshit come from? And less does a lot more than just ``display text without a scrollbar'', you know.

Name: ​​​​​​​​​​ 2010-10-23 16:37

Name: Anonymous 2013-09-02 12:54

negrobump

Don't change these.
Name: Email:
Entire Thread Thread List