Change your e-mail address in multiple files

sed -i 's/' `grep -rl .`
Do a recursive (-r) search with grep for all files where your old mail address is mentioned (-l shows only the file names) and use sed to replace it with your new address. Works with other search/replacement patterns too.

By: and3k
2010-02-18 18:26:09

What Others Think

SED provides the facility of changing the link or email address to get the notifications after resetting the password. The following are the cases in college essay writers to explain the ways of SED setup.
xusarefoc · 49 weeks ago
Hey everyone, this is the fourth article in the series on the most popular commandlinefu one-liners explained. Here are the first three parts: Part I: Top Ten ... by
buyfollowersuk · 47 weeks and 4 days ago
Easily use commandlinefu. API with nodejs. ... Simple nodejs module to easily get commandlinefu snippets in JSON format. by
buyfollowersuk · 47 weeks and 4 days ago
In some cases, you can use a different email address (username) to identify your Google Account. What this email address is. When you're signed in, your email ...
followerscanda9 · 46 weeks and 6 days ago
Learn how to add secondary email aliases to your Dropbox account. ... See how Dropbox helps you effortlessly share files and folders. Note: Currently, Dropbox ... Click Edit. Click Add a secondary email. Type the secondary email you'd like to add. Click Next. ... your primary email. You can add multiple secondary emails.
followerscanda9 · 46 weeks and 6 days ago
followerscanda · 2 weeks and 2 days ago
followerscanda · 2 weeks and 2 days ago!/
followerscanda · 1 week ago!/
followerscanda · 1 week ago
followerscanda · 4 days ago,20
followerscanda · 4 days ago
followerscanda · 2 days ago
followerscanda · 4 hours 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: