buy hypertropin

Archive for December, 2015


 Powered by Max Banner Ads 

Find and replace in Linux file

Tuesday, December 1st, 2015

if in single file

sed -i ‘s/ugly/beautiful/g’ /home/bruno/old-friends/sue.txt

if in multiple files

$ find /home/bruno/old-friends -type f -exec sed -i ‘s/ugly/beautiful/g’ {} \;

 

Thanks.