BASH Convert File Formats

From Indie IT Wiki

DOCX TO TEXT

unzip -qc document.docx word/document.xml |sed 's#</w:p>#\n\n#g;s#<[^>]*>##g'

Thanks to Woozle.org

FLAC TO MP3

find -name "*.flac" -exec avconv -i {} -acodec libmp3lame -ab 320k {}.mp3 \;
or
for f in *.flac; do avconv -i "$f" -acodec libmp3lame -ab 320k "${f%.flac}.mp3"; done

PDF TO JPG

convert /tmp/page1.pdf /tmp/page1.jpg

MSG (Outlook) to EML

sudo aptitude install libemail-outlook-message-perl libemail-sender-perl

msgconvert *.msg

Thanks to Superuser.com