Created
March 19, 2015 12:02
-
-
Save adamjakab/0c23da818a8ad3ca1d4f to your computer and use it in GitHub Desktop.
converting Outlook pst to Thunderbird(Author: Srijan Kishore - https://www.howtoforge.com/convert_outlook_pst_files_to_thunderbird_and_evolution_on_linux)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir ~/outlook | |
#File selection | |
readpst -o ~/outlook -r `zenity --file-selection` | |
find ~/outlook -type d | tac | grep -v '^~/outlook$' | xargs -d '\n' -I{} mv {} {}.sbd | |
find ~/outlook.sbd -name mbox -type f | xargs -d '\n' -I{} echo '"{}" "{}"' | sed -e 's/\.sbd\/mbox"$/"/' | xargs -L 1 mv | |
#Script Completion | |
find ~/outlook.sbd -empty -type d | xargs -d '\n' rmdir | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment