[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How do I bulk rename these IMAP email files?

Posted on 2011-09-23
2
Medium Priority
?
460 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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Email attacks are the most efficient and effective way for cyber criminals and hackers to compromise a computer or network. We often find our-self second guessing the authenticity of an email message, for such instances we can follow practical princ…
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: …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

834 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