anon_coder
4/3/2019 - 8:51 AM

find and replace strings

find . -type f -name "*.R" -exec sed -i 's/foo/bar/g' {} +

# replaces all strings that match 'foo' with 'bar' in files that are called something .R (recursive)