Bash tips and tricks

Nice quick bash book (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


  1. htc samsung omnia review

    J November, 2008 at 11:33 pm

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

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

Comments are closed.

© 2024 Gudasoft

Theme by Anders NorénUp ↑