Skip to content

Instantly share code, notes, and snippets.

@brunoadacosta
Forked from tapajos/gist:3355004
Created August 15, 2012 02:36
Show Gist options
  • Select an option

  • Save brunoadacosta/3355122 to your computer and use it in GitHub Desktop.

Select an option

Save brunoadacosta/3355122 to your computer and use it in GitHub Desktop.
trucate logs
#!/bin/bash
cd $PROJECT_PATH
for i in $(find */log/*.log); do
echo "" > $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment