Solved

How do I bulk rename these IMAP email files?

Posted on 2011-09-23
2
407 Views
Last Modified: 2012-05-12
Hello,
I am moving from a qmail / horde implementation to atmail, and have found that the atmail migration script for imap doesnt work very well. So my solution was to manually backup all the email files I needed migrated into zips, and moved them to the new server. I have uncompressed them, and now need to rename them to match the new domain name.

My question is this.. I have tried to use the rename script in ubuntu to rename them and it is not working... how do I bulk replace *urlwww.novarix.net* with *dev.mediagiantdesign.com*?

Worth 500 points.

Thanks,
Rick Simnett
0
Comment
Question by:richardsimnett
2 Comments
 
LVL 16

Accepted Solution

by:
medvedd earned 500 total points
ID: 36588839
If you mean to replace www.novarix.net in file names with dev.mediagiantdesign.com:

#!/bin/sh

for i in *www.novaris.net*
do
  mv $i `echo $i | sed -e 's/www.novaris.net/dev.mediagiantdesign.com/'`
done
0
 

Author Comment

by:richardsimnett
ID: 36589040
Excellent. Thats what I needed. THANKS!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now