Guest User

Untitled

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