Find all files in the current directory and execute a command to replace all occurrences of 'a' with 'b' in each file, creating a backup of each file with the extension '.bak'.
find . -exec sed -i.bak 's/a/b/g' {} \;