some modification on instpkg
[cmdllinux.git] / scripts / _find_shell_scripts.sh
blobb4b06c6e23ee6c5fe088f5e6fb481cc4909c4f54
1 #text and script
2 [ "$1" = "-t" ] && text=1
4 find -type f | \
5 while read file; do
6 output=`file $file`
7 if [ $text ]; then
8 if echo "$output" | grep -q "POSIX shell script\|ASCII text"; then
9 echo $file
11 else
12 if echo "$output" | grep -q "POSIX shell script"; then
13 echo $file
16 done