|
-
May 7th, 2003, 06:58 AM
#1
Russian roulette for BASH
WARNING MIGHT RESULT IN MASSIVE DATA LOSS !!!
play russian roulette in your BASH shell...
copy and paste this line..
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live"
for people with any regard for the safety of their data there is a safe version
[ $[ $RANDOM % 6 ] == 0 ] && echo "You are dead" || echo "You live"
How it works..
A random integer between 0 and 5 ( MOD 6 ) is generated and checked against 0
if it is 0 you go to the next step of the IF statement, the AND ( && ) that removes all data recursively with force from your linux..
if it is not 0 you go to the OR ( || ) part wich tells you You live
ASCII stupid question, get a stupid ANSI.
When in Russia, pet a PETSCII.
Get your ass over to SLAYRadio the best station for C64 Remixes !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|