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

I HATE BASH

Name: Anonymous 2012-11-01 10:18

It's so shit. Shittier than PHP by at least 10 orders of magnitude.

Link related, it's the nigger who wrote it:
http://en.wikipedia.org/wiki/Brian_Fox_(computer_programmer)

Name: Anonymous 2012-11-05 13:02

So then, if BASH sux so hard, anyone have a better way of doing this?

echo -n "Duplicates: "
diff -s "$1" "$2" >/dev/null 2>&1 && {
    echo "Yep.  Removing one."
    mv -f "$1" "$2" || echo "Write fail, WTF?"
} || echo "Nope."


One thing I don't get, though, is why you sometimes have to «>/dev/null 2>&1», instead of a straight «&>/dev/null»…

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