The Blog Tjenarvi

Funny jokes,secret love and sex in astrology,life hacker,fun flash games


Archive for the 'Linux Tips' Category



LINUX command to Search and Replace as well as edit it in place in all files within a directory recursively

Thursday 9 April 2009 @ 12:41 pm

One day, I want to edit all files within a directory and it will be a nightmare if you open it one by one and search replace them one by one. DO NOT do that, it is completely stupid, Linux has tons of tools to do it easily for you just in one command and type “ENTER” and everything is done for you.

You can do using find or perl. I like find and xargs the best, because it can more flexible on the files you want to edit search and replace, example you can do -size for size or -atime for last accessed time or -iname for case insensitive or -perm for permission files, and more…

Do ‘man find’ for more information and also don’t forget ‘man xargs’

Continue Reading »
LINUX command to Search and Replace as well as edit it in place in all files within a directory recursively

Bookmark and Share





Offers
Earn Money

Shout Me

ShoutMix chat widget


Google Friends

Traffic Helps
humors,astrology,chinese shio,life,love,fact or fictious,fun flash games,computer tips

Spottt
Spottt

Free advertising



Statistics