BASH Convert File Formats

DOCX TO TEXT
unzip -qc document.docx word/document.xml |sed 's##\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