Skip to content

Instantly share code, notes, and snippets.

@nmccready
Created June 25, 2013 11:52
Show Gist options
  • Select an option

  • Save nmccready/5857896 to your computer and use it in GitHub Desktop.

Select an option

Save nmccready/5857896 to your computer and use it in GitHub Desktop.
find and awk combination to search for a file
find . -name "*.pid" -print -exec awk '$9 != "" && n < 10 {print; n++}' {} \;
@nmccready

Copy link
Copy Markdown
Author

@nmccready

Copy link
Copy Markdown
Author

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