Find all files with the extension ".c" in directories with a depth of 3 to 4 levels, and replace all occurrences of "oldword" with "newword" in those files.
find . -mindepth 3 -maxdepth 4 -type f -name "*.c" -exec sed -i 's/\S*oldword\S*/newword/g' {} \;