#!/bin/sh ./list-chapters.sh | while read file do echo "$file" ./convert.sed "$file" | \ xsltproc --encoding utf-8 --html convert.xsl - > "${file}.xml" done