5

Fun bash script I made

view full story
linux-howto

http://forums.fedoraforum.org – Ok so I got a little bored and desided to make a fun little bash script that you can use to scare Linux neewbies :) Here is the code: Quote: #!/bin/bash clear echo "Formating disk(s): " /dev/sd* sleep 2 echo "Initialising..." sleep 2 echo "Are you sure you want to format these disks?" # Declare variable choice and assign value 3 choice=3 # Print to stdout echo "1. Yes" echo "2. No" echo -n "Please choose Yes or No? " # Loop while the variable choice is equal 3 # bash while loop while (HowTos)