Skip to content

Instantly share code, notes, and snippets.

@lynsei
Last active December 24, 2024 23:54
Show Gist options
  • Save lynsei/a28c4fbb3d9d0019e853c43522ed9ab6 to your computer and use it in GitHub Desktop.
Save lynsei/a28c4fbb3d9d0019e853c43522ed9ab6 to your computer and use it in GitHub Desktop.
Fish and bash and no extension
# find all .fish|.bash|no-ext files
find . -regex '.*\.\(fish\|bash\)\|^[^\.]*$' #noworky
# that was supposed to work but it did ot
# this worked:
find . -regex '.*.[.fish]'
/* it finds all files without an extension, fish, and bash files:
╰─❯ find . -regex '.*.[.fish]'
./status-status
./.git.status.bash
./.git.bash.fish
./.git.status
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment