Last active
December 22, 2015 11:58
-
-
Save craigbeck/6469187 to your computer and use it in GitHub Desktop.
find files by pattern but don't look in certain directories
This file contains 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 | |
# as @nobody | |
find . -not \( -path */archive -prune \) -name *-Linux-*.tar.gz |
This file contains 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 | |
# as @nobody | |
find . -not \( -path */archive -prune \) -name *-Linux-*.tar.gz -exec rm {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment