Bash tips and tricks

26th August, 2008

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

Tags:

2 Responses to “Bash tips and tricks”

  1. htc samsung omnia review says:

    delete files older than a week
    find ./ -mtime +6 -print0 | xargs -0 rm -f

  2. guda says:

    find /tmp -name ‘ses*’ -mtime +3 -print0 | xargs -0 rm -f

Leave a Reply