Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • linux.die.net/man/1/grep linux.die.net/man/1/xargs linuxjournal.com/content/bash-extended-globbing Commented Feb 16, 2021 at 22:29
  • This will match files with #! at the start of any line. Commented Feb 17, 2021 at 18:38
  • ... will also match '#!/bin/sh # this is not a bash script' or '#! like fruits of calabash tree' but prefer regex kiss for demonstration. focus was more on avoiding 'script.sh.sh.sh' on multiple runs Commented Feb 19, 2021 at 12:43