#!/bin/bash # # lyx2txt - a script to convert LyX docs into text. # # Phil Hollenback # philiph@pobox.com # # $Id$ type lyx >/dev/null 2>&1 || { echo "can't find lyx" >&2 && exit 1 } if lyx -e text $1 then dir=`dirname $1` txtFile=$dir/`basename $1 .lyx`.txt cat $txtFile rm -f $txtFile fi