Solved

How do I bulk rename these IMAP email files?

Posted on 2011-09-23
2
425 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
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: …
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

777 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