Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Caveat: grep can't match the beginning of the file, so this will catch files with a shebang on any line,
- # such as a script being embedded in another kind of file. To get around this each file should be checked with head -n1
- grep -Ir '^#!/.*sh' --exclude-dir 'node_modules' --exclude '*.tpl' ./* | awk -F: '{print $1}'
Add Comment
Please, Sign In to add comment