Bash tips and tricks
26th August, 2008Nice quick bash book
http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-7.html (loops)
How to check if files containt “this” and “that”
grep -i 'for nut in self._foundNuts:' `grep -ril "loop(1):" *`
Display timestamp
date -d @1231351762
Tags: bash
delete files older than a week
find ./ -mtime +6 -print0 | xargs -0 rm -f
find /tmp -name ‘ses*’ -mtime +3 -print0 | xargs -0 rm -f