Solved

How do I bulk rename these IMAP email files?

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
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.
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…

839 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