Find all files with the extension ".sh" that are owned by the group root and modified within the last 100 days, and replace all occurrences of "foo" with "bar".
find / -type f -group root -mtime - 100 -name '*.sh' | xargs sed 's/foo/bar/g'