Search files in current directory
sed -i -- 's/foo/bar/g' * perl -i -pe 's/foo/bar/g' ./*
Recursive, regular files (including hidden ones) in this and all sub-directories
find . -type f -exec sed -i 's/foo/bar/g' {} +
Search files in current directory
sed -i -- 's/foo/bar/g' * perl -i -pe 's/foo/bar/g' ./*
Recursive, regular files (including hidden ones) in this and all sub-directories
find . -type f -exec sed -i 's/foo/bar/g' {} +