Rails devs, reclaim your harddrive
1 2 |
cd code-dir find . | egrep "(development|test)\\.log" | grep -v .svn | xargs rm |
I’d forgotten to clear out my logs for a long while. This found me 9.5Gb!
1 2 |
cd code-dir find . | egrep "(development|test)\\.log" | grep -v .svn | xargs rm |
I’d forgotten to clear out my logs for a long while. This found me 9.5Gb!
December 17, 2007 at 9:58 PM
how about `rake log:clear`?
December 17, 2007 at 10:01 PM
Oh yes I’ve learned now, but that’s not going to clear out the logs in all of the 10 active projects I have…