find / grep cheat sheet (Ubuntu)
Find files and search inside them.
find
find . -name "*.log"
find /var/log -type f -mtime -1
find . -name "*.tmp" -exec rm {} \;grep
grep -R "pattern" .
grep -Rni "pattern" /etc
grep -E '^[0-9]+$' file.txt
Find files and search inside them.
find . -name "*.log"
find /var/log -type f -mtime -1
find . -name "*.tmp" -exec rm {} \;grep -R "pattern" .
grep -Rni "pattern" /etc
grep -E '^[0-9]+$' file.txt