• find certain strings in files on certain folders

find . -type f ! -exec grep -q '@olddomain.com' {} \; -exec grep -q 'olddomain.com' {} \; -print

find . -type f | xargs egrep -Hn '@olddomain.com'

  • search for top talkers using tshark

tshark -r output.cap -T fields -e ip.src "tcp.flags.syn==1 && tcp.flags.ack==0" | sort | uniq -c | sort -rn | head

  • chmod multiples files mix with directory.

find /folderpath -type f -exec chmod 644 {} \;

  • chmod multiples directory mix with other files.

find /folderpath -type d -exec chmod 755 {} \;