Skip to content

Instantly share code, notes, and snippets.

@lucasmezencio
Last active October 7, 2015 07:57
Show Gist options
  • Save lucasmezencio/3130948 to your computer and use it in GitHub Desktop.
Save lucasmezencio/3130948 to your computer and use it in GitHub Desktop.
Execute command only in files in command line
# Files
find ./ -type f -exec COMMAND "{}" \;
# Directories
find . -type d -exec COMMAND "{}" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment