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 8:45

P.S. FOR THOSE OF U IN DA KNO, SHOVE DIS IMAGE FORMAT DOWN FRIGN'S CARCASS, FARBFELD'S A JOKE

2x2 image, red, green, blue, transparent (left to right varies fastest, up to down)

2 2
ff0000ff
00ff00ff
0000ffff
00000000


REPLACE DIS SHIT: http://git.suckless.org/farbfeld/tree/farbfeld.5#n51

WITH DIS:

#include <stdio.h>

int main(void)
{
unsigned r, g, b, a;
char s[8192];

if (fgets(s, sizeof s, stdin) == NULL)
return 1;
printf("%s", s);
while (scanf("%02x%02x%02x%02x", &r, &g, &b, &a) == 4)
printf("%02x%02x%02x%02x\n", 0xff-r, 0xff-g, 0xff-b, a);
return 0;
}

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