Change string in many files at once and more.

find . -type f -exec grep -l XXX {} \;|tee /tmp/fileschanged|xargs perl -pi.bak -e 's/XXX/YYY/g'
Find all files that contain string XXX in them, change the string from XXX to YYY, make a backup copy of the file and save a list of files changed in /tmp/fileschanged.

By: drossman
2009-02-16 02:55:23

What Others Think
seofox · 26 weeks and 4 days ago
Dead composed subject matter, thanks for information . ????????????????
wenilak444 · 14 weeks and 1 day ago
After study a number of the blog articles on your own site now, we truly such as your technique of blogging. I bookmarked it to my bookmark web site list and you will be checking back soon. Pls check out my website at the same time and tell me if you agree. ??
wenilak444 · 12 weeks and 5 days ago
You can definitely see your skills within the work you write. The sector hopes for even more passionate writers such as you who aren’t afraid to mention how they believe. All the time go after your heart.
wenilak444 · 12 weeks and 2 days ago
Youre so cool! I dont suppose Ive read anything in this way before. So nice to find somebody with many original thoughts on this subject. realy i appreciate you for starting this up. this fabulous website is one area that is needed on the internet, an individual if we do originality. beneficial purpose of bringing something new for the net! here
wenilak444 · 12 weeks and 1 day ago
The guidelines you provided here are really useful. It was such an enjoyable surprise to have that awaiting me as i woke up this very day. They are constantly to the point and easy to understand. Thanks for your time for the innovative ideas you’ve shared above. ????? ??
wenilak444 · 10 weeks and 5 days ago
I just could not depart your web site prior to suggesting that I actually enjoyed the standard information a person provide for your visitors? Is going to be back often in order to check up on new posts
wenilak444 · 10 weeks and 2 days ago
Excellent read, I just passed this onto a friend who was doing some research on that. And he actually bought me lunch since I found it for him smile So let me rephrase that: Thank you for lunch! ????? ??
wenilak444 · 10 weeks and 1 day ago
It’s nearly impossible to find knowledgeable individuals with this topic, however, you be understood as guess what happens you’re talking about! Thanks ??????
wenilak444 · 9 weeks and 1 day ago
Awesome! I appreciate your input to this matter. It has been insightful. my blog: how to eat a girl out ??????????
wenilak444 · 9 weeks ago
We are a group of volunteers and starting a new project in our neighborhood. Your blog provided us with valuable information to help us get started|.You have done a great job! Football Match Prediction Software
wenilak444 · 8 weeks and 6 days ago
Hello! I would want to supply a huge thumbs up for any fantastic info you’ve here about this post. We are returning to your website for much more soon. ????????
wenilak444 · 8 weeks and 6 days ago
Thanks for the writeup. I definitely agree with what you are saying. I have been talking about this subject a lot lately with my brother so hopefully this will get him to see my point of view. Fingers crossed! ufabet ???????????
goxah55535 · 8 weeks and 6 days ago
There is noticeably a bundle to know about this. I assume you made certain nice points in features also ufabet ???????????
goxah55535 · 8 weeks and 6 days ago
Many thanks for making the effort to talk about this, I feel strongly about this and enjoy learning a great deal more on this matter. If feasible, as you gain expertise, would you mind updating your website with a great deal more details? It’s very useful for me. ufabet ???????????
goxah55535 · 8 weeks and 5 days ago
That’s not me not used to blogging and actually value internet site. You can find much innovative content that peaks my interest. Let me bookmark your website whilst checking you out of trouble.
wenilak444 · 8 weeks and 4 days ago
i believe,Oftentimes any time you in some assume that mindset familiar with you, you should make sure he understands a great number of, multiple issues, actually these bankruptcies are not every in mates around you could not convey to ???????????? ?? ??? ? ??????
wenilak444 · 7 weeks and 5 days ago
I was trying to find this. Really refreshing take on the information. Thanks a lot. UFABET
goxah55535 · 7 weeks ago
thank for sharing this with all of us. Of course, what a great site and informative posts, I will bookmark this site. keep doing your great job and always gain my support. cheers for sharing this beautiful story KIU Kampala
goxah55535 · 6 weeks and 6 days ago
Perfect piece of work you have done, this site is really cool with great info . buy pork feet
wenilak444 · 5 weeks and 6 days ago
If you’re these days gifted products, it comes down without drugs, and also you also interest that this are jealous of of most these kind of remaining outdoorsman near you who may predicament utilizing this crisis. caravan leisure store ???
wenilak444 · 5 weeks and 6 days ago
I’m not sure exactly how I found this blog because I had been researching information on Real Estate inWinter Springs, FL, but anyway, I have had a pleasant time reading it, keep it up! Buy Instant Twitch Followers
wenilak444 · 5 weeks and 6 days ago
i believe,Oftentimes any time you in some assume that mindset familiar with you, you should make sure he understands a great number of, multiple issues, actually these bankruptcies are not every in mates around you could not convey to INDIAN VISA APPLICATION
wenilak444 · 5 weeks and 5 days ago
You made some decent points there. I looked on the web for that problem and found most individuals will go coupled with along with your web site. ???????
wenilak444 · 5 weeks and 5 days ago
A well written post, I just given this onto a colleague who was doing slightly analysis on that. And he indeed purchased me breakfast because I discovered it for him .. thus let me reword that: Thankx for the treat! however yeah Thnx for spending the time to talk concerning this, I feel strongly concerning it and revel in reading a lot of on this topic. If potential, as you become expertise, would you mind updating your blog with a lot of info? it’s very useful on behalf of me. two thumb up for this blog! ?????
wenilak444 · 5 weeks and 4 days ago
I definitely appreciate your website. Thank you for your insights and guidance. ????
wenilak444 · 5 weeks and 4 days ago
I’m very happy to read this. This is the type of details that needs to be given and not the random misinformation that is at the other blogs. Appreciate your sharing this greatest doc. ????
wenilak444 · 5 weeks and 4 days ago
I do not even understand how I stopped up here, however I thought this submit was once good. I do not realize who you’re but certainly you are going to a well-known blogger for those who aren’t already Cheers! ????
wenilak444 · 5 weeks and 1 day ago
Thanks for another great post. Where else could anybody get that kind of information in such a perfect way of writing? I have a presentation next week, and I am on the look for such information. ?????
wenilak444 · 5 weeks and 1 day ago
Very interesting topic , appreciate it for posting . Buying codeine online
wenilak444 · 4 weeks and 4 days ago
This approach can be how it looks genuinely the most appropriate. Every one involving minute best parts are generally planned with many customs knowledge. I propose it rather a lot. vidente en Gandía
goxah55535 · 4 weeks and 3 days ago
I am impressed, I must say. Very seldom do I come across a blog that is both informative and entertaining, and let me tell you, youve hit the nail on the head. Your idea is important; the issue is something that not a lot of people are talking intelligently about. I am really happy that I stumbled across this in my search for something relating to it. ?????
wenilak444 · 3 weeks and 6 days ago
An fascinating discussion is value comment. I think that it is best to write extra on this matter, it won’t be a taboo topic however generally people are not enough to talk on such topics. To the next. Cheers [Reply] stream xyz
wenilak444 · 3 weeks and 1 day ago
i love to receive birthday cards specially if they are custom built birthday cards~">?????????????????????? ???????????
wenilak444 · 2 weeks and 1 day ago
Comfortably, the blog post is during truthfulness a hottest on this subject well known subject matter. I agree with ones conclusions and often will desperately look ahead to your updaters. Saying thanks a lot will not just be sufficient, for ones wonderful ability in your producing. I will immediately grab ones own feed to stay knowledgeable from any sort of update versions. Amazing get the done and much success with yourbusiness results! ?????
wenilak444 · 1 week and 4 days ago
This may be the proper weblog for everyone who wishes to be familiar with this topic. You are aware of so much its nearly hard to argue to you (not that I really would want…HaHa). You certainly put a brand new spin with a topic thats been discussing for a long time. Wonderful stuff, just great! IRELAND FAKE ID
wenilak444 · 1 week and 4 days ago
I am just use very happy understand this. This can be the method of information which needs to be presented harmful . ” the actual random hype may possibly be inside the another webpages. Satisfaction from your individual sharing with us the following prime file. ?????
wenilak444 · 1 week and 1 day ago
Spot i’ll carry on with this write-up, I truly think this fabulous website needs far more consideration. I’ll oftimes be again to learn to read considerably more, many thanks for that info. ????? ?????????????
wenilak444 · 6 days ago
Unquestionably believe that which you stated. Your favorite justification appeared to be on the internet the easiest thing to be aware of. I say to you, I certainly get irked while people consider worries that they just don’t know about. You managed to hit the nail upon the top and also defined out the whole thing without having side effect , people can take a signal. Will probably be back to get more. Thanks ???????????????? ???????????
wenilak444 · 6 days ago
I happen to be writing to let you understand what a incredible experience our girl encountered studying the blog. She came to find a lot of things, which include what it is like to possess an excellent giving heart to make men and women quite simply learn about certain grueling matters. You actually did more than our own expected results. Many thanks for showing these helpful, trustworthy, revealing and also unique guidance on the topic to Sandra. ????
wenilak444 · 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: