Created
December 16, 2013 15:45
-
-
Save ovntatar/7989158 to your computer and use it in GitHub Desktop.
Shell progressbar ..
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
#!/bin/bash | |
searchfor="Hallo" # something to search for | |
tempfile="search.log" # temporary logfile | |
echo -n "Searching for $searchfor. " | |
grep -rl $searchfor / 2>/dev/null 1>>$tempfile & | |
while ps |grep $! &>/dev/null; do | |
echo -en "." | |
sleep 0.3 | |
done | |
echo -e "Done" | |
echo "Result:" | |
cat $tempfile | |
rm $tempfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment