Bash oneliners

From UVOO Tech Wiki
Revision as of 23:49, 26 August 2021 by Busk (talk | contribs)
Jump to navigation Jump to search
grep -rl oldtext . | xargs sed -i 's/oldtext/newtext/g'
find /home/www \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/subdomainA\.example\.com/subdomainB.example.com/g'