Browsing all articles tagged with find and replace in linux - Share Programming Tips
Oct
10

Find and replace command for whole directory in Linux

In many case most of the projects have so many files in so many different folder. So at some point you want to do find and replace for particular word in your whole project or whole directory in that case this command will help you.

In linux for doing this there is no single command but we can design one new command by combination of several.

find /path/to/directory -type f -exec sed -i.bak 's/oldword/newword/g' {} \;

read more

Follow us on Twitter! Follow us on Twitter!

Search in this website

our sponsors

latest comments

Find us on Facebook

Top Authors

35 posts
saurabh
21 posts
9 posts

Find us on stackoverflow

Polls

Tell us who you are

View Results

Loading ... Loading ...

My Bookmarks

Sponsers Link