The file(1) command will mark most of them as shell scripts. The rest are, typically, libraries of shell functions that I name with .sh suffixes.
All shell scripts that file can find:
$ file * | awk -F: '/shell/{print $1}'
plus the libraries
$ file * | awk -F: '/shell/{print $1}' ; echo *.sh
now syntax check them
$ for i in $(file * | awk -F: '/shell/{print $1}' ; echo *.sh); do bash -n $i || echo $i fails; done
Just with command-line recall and editing.
No comments:
Post a Comment