[plug] text processing
ryan at is.as.geeky.as
ryan at is.as.geeky.as
Mon Dec 9 16:38:47 WST 2002
I do file based stuff like that in this way, I don't know the specifics
of wvText and txt2html, so I won't try to involve them :)
================================================
#!/bin/sh
DOC_DIR=doc/
HTML_DIR=html/
for FILE in `ls ${DOC_DIR}`
do
# do whatever you want here
# ${FILE} will hold each file
# name in turn
# eg: blah ${FILE} | blah > ${HTML_DIR}${FILE}
done
================================================
That might get you on the right track.
Ryan
On Mon, 2002-12-09 at 16:17, Sol wrote:
> Hi PLUG,
>
> I have a bunch of M$ Word files that in a directory that I want to clean up
> and output to another empty directory as HTML. I've been doing everything the
> slow way using command line tools, but I'm sure that it can all be done with
> a single command. I'm using wvText and txt2html. I want to pipe all the files
> in the directory in order through wvText into the empty directory and then
> pass everything in that directory through txt2html.
>
> If I've got these files: one.doc, two.doc and three.doc in ../docs/ and want
> them to end up as HTML in ../html/ as one.html, two.html and three.html, how
> can I do this with a single command?
>
> Thanks,
> sol
More information about the plug
mailing list