Last active
March 31, 2020 20:04
-
-
Save bsolomon1124/c23a848f58ffcbbe59889aefe9654c3d to your computer and use it in GitHub Desktop.
Recursive-find shell scripts, including no-extensions with shebang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
{ | |
grep -rlE '^#!\s?/(usr/)?bin/(env\s+)?(sh|bash|fish|zsh)' . | |
find . -type f \( -iname "*.bash" -o -iname "*.sh" -o -iname "*.zsh" -o -iname "*.fish" \) | |
} | tr "\n" " " | uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment