Created
January 20, 2016 16:23
-
-
Save stevekm/0a1fa901db72f486bd6e to your computer and use it in GitHub Desktop.
find ignore dotfiles
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/bash | |
# in OS X | |
find -E . \( ! -regex '.*/\..*' \) | |
# vanilla bash | |
find . \( ! -regex '.*/\..*' \) -type f -name "filename" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment