Easy way to search and replace using bash

Hello there,

if you have a directory contains a lot of files under Linux, and you need to search for specific file names and replace some string inside those files. Will check this out

sed -i s/$tobereplaced/$replacewith/g $directory/*.$extention

I hope that you like it 🙂

Posted in Programming, Shell Scripting and tagged , , , , , . Bookmark the permalink. RSS feed for this post. Leave a trackback.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

Swedish Greys - a WordPress theme from Nordic Themepark.