Created
September 23, 2012 02:03
-
-
Save fakessh/3768539 to your computer and use it in GitHub Desktop.
tshell
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/sh | |
#bsearch.sh by ThreaT | |
for fichier in * | |
do | |
file $fichier > /tmp/t | |
if grep "shell" /tmp/t > /dev/null; then | |
echo "$fichier est un Bourne shell script" | |
fi | |
done | |
rm -f /tmp/t | |
#fin du script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment