Nice 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
http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-7.html (loops)
grep -i 'for nut in self._foundNuts:' `grep -ril "loop(1):" *`
date -d @1231351762
© 2024 Gudasoft
Theme by Anders Norén — Up ↑
J November, 2008 at 11:33 pm
delete files older than a week
find ./ -mtime +6 -print0 | xargs -0 rm -f
J March, 2009 at 8:44 pm
find /tmp -name ‘ses*’ -mtime +3 -print0 | xargs -0 rm -f