Skip to content

Instantly share code, notes, and snippets.

@lafeber
Created November 22, 2018 09:47
Show Gist options
  • Save lafeber/e99b87edc8a9650300cf3b47ddc3be6a to your computer and use it in GitHub Desktop.
Save lafeber/e99b87edc8a9650300cf3b47ddc3be6a to your computer and use it in GitHub Desktop.
Recursively empty log files.
find . -type f -name "*.log" -exec dd if=/dev/null of={} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment