-
-
Save iMartyn/2e9fff1ef1e2c9e361ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cd() { | |
# Aliases | |
alias cd='' | |
alias exit='' | |
# Variables | |
NONE='\033[00m' | |
RED='\033[01;31m' | |
SLEEP=`which sleep` | |
SEQ=`which seq` | |
# Remove Path | |
export PATH='' | |
# Script | |
echo -e "${RED}WARNING: FORMATTING HARD DRIVE.${NONE} This may take a few minutes." | |
for i in `${SEQ} 1 300`; | |
do | |
echo -n '.' | |
if [ $(( $i % 50 )) -eq 0 ] ; then | |
echo | |
fi | |
`${SLEEP} 0.1` | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment