find

find & chmod

  1. Starting in current directory, find files or directories and change permissions
    • find . '(' -type f -exec chmod 644 {} ';' ')' \ -o '(' -type d -exec chmod 755 {} ';' ')'

find & replace

  1. Starting in current directory, find all files and replace ab with space
    • find . -type f -prin0 | xargs -0 sed -i 's/\/ /g'
  2. Another powerful solution is to install & learn rpl
    • dnf install rpl
    • man rpl