Skip to content

Instantly share code, notes, and snippets.

@ahcode0919
Created March 2, 2018 23:24
Show Gist options
  • Save ahcode0919/f4909104582ff4d3e56fe95484538dca to your computer and use it in GitHub Desktop.
Save ahcode0919/f4909104582ff4d3e56fe95484538dca to your computer and use it in GitHub Desktop.
Find file and perform command script
find "{directory}" -name "{filename}" -print0 | xargs -0 "{command}"
# Example find "./" -name "*.txt" -print0 | xargs -0 echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment