Created
June 25, 2013 11:52
-
-
Save nmccready/5857896 to your computer and use it in GitHub Desktop.
find and awk combination to search for a file
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
find . -name "*.pid" -print -exec awk '$9 != "" && n < 10 {print; n++}' {} \; |
find . -name .svn -print0 | xargs -0 git rm -rf --ignore-unmatch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From here , http://stackoverflow.com/questions/708577/applying-unixs-head-on-awk-through-find-command