Solved

How do I bulk rename these IMAP email files?

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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Ransomware continues to be a growing problem for both personal and business users alike and Antivirus companies are still struggling to find a reliable way to protect you from this dangerous threat.
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.
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…

679 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