; ; Sed: How to do a recursive find/replace of a string? ; find . -type f -print0 | xargs -0 sed -i 's/old/new/g' ; ; trim line tr -d ' ' ; sed directory find . -type f -print0 | xargs -0 sed -i 's/88299008866/88299008890/g' ; sed input file grep -r -l auth-user-pass * | xargs sed -i 's/auth-user-pass/auth-user-pass auth.txt/g' sed -i 's/ugly/beautiful/g' /home/bruno/old-friends/sue.txt