Last active
December 24, 2024 23:54
-
-
Save lynsei/a28c4fbb3d9d0019e853c43522ed9ab6 to your computer and use it in GitHub Desktop.
Fish and bash and no extension
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
# 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