Skip to content

Instantly share code, notes, and snippets.

@fakessh
Created September 23, 2012 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fakessh/3768539 to your computer and use it in GitHub Desktop.
Save fakessh/3768539 to your computer and use it in GitHub Desktop.
tshell
#!/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