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

UNIX philosophy.

Name: Anonymous 2016-02-15 13:21

Why is the opposite of cat tee, and it's not even a proper opposite but also does a different thing (outputs to stdout) (which is ostensibly its real purpose)?

Also, why do I even need the opposite of cat (and cat itself while we are at it) when those needs should have been served by input and output redirection, but turns out that the latter is completely made up and broken shell bullshit: you can't cat <file1 <file2, and you can't EDITOR='echo zzz >>$1' visudo for example.

Orthogonal design, my ass. Do one thing and do it well, my ass.

Name: L. A. Calculus !jYCj6s4P.g 2016-08-24 9:26

N FOR THOSE OF U LIKE FRIGN WHO R STILL BANGIN BINARY FILES AROUND WITH UR STACK BOI htonl CRAP (REED DA FUKIN TPOP N DO SERIALISATION PROPER), LEMME PUT DA UNIX SPIRIT TO YA DIS WAY.

CATCH DA DIMENSIONS OF AN IMAGE:

sed 1q

COUNT DA NUMBER OF COLOURS IN AN IMAGE:

sed 1d | sort | uniq | wc -l

ORDER DA PALETTE BY FREQUENCY:

sed 1d | sort | uniq -c | sort -nr | sed 10q

RENDER A BITMAP IMAGE 2 STDOUT:

read width height
sed 's/ffffffff/ /g;s/000000ff/#/g' | tr -d '\n' | fold -w $width
echo

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