Archive for the 'Linux Tips' Category
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’
Offers
Earn Money
Shout Me
Google Friends
Traffic Helps
Statistics





Twitter
Facebook




