unoconv

a command line utility that can convert any file format that

     OpenOffice can import, to any file format that OpenOffice is capable of
     exporting.

Ca marche nickel!

#! /usr/bin/bash
# [[word2txt]] Script to automatically convert word doc files to plain txt files
# Usage:
# Required: unoconv
# apt-get install unoconv
#
# Authors:
# FR, radeff@akademia.ch
# History
# 2008.11.18: FR, created
#########
echo "Script to automatically convert word doc files to plain txt files"
echo "************"
WD=`pwd`
echo "Now converting all files under" .$WD
echo "************"
find . -name "*.doc"  -o -name "*.DOC" -o -name "*.rtf" -o -name "*.RTF" | while read i
do
unoconv -f txt "$i"
done
echo "************"
#echo "Finished, $k  files converted"
echo "Finished, all  files converted"
  • info/unoconv.txt
  • Dernière modification: 2018/07/18 09:46
  • par radeff