virtanen wrote:
> For example I've got:
> __________________________
> 
> asiakirja1.doc
> asiak2.doc
> asia.doc
> etc
> about twenty word documents starting with 'a'.
> 
> _____________________________
> 
> And I wanted to get them each into html, if possible with a single
> command.
> 
> I've tried something like:
> 
> mswordview as*.doc > as*.html
> 
> But that gives me only one html document:
> as*.html.
> 
> What to do?
> (Some people who know linux/unix well will surely know an easy answer how
> to do it.)

I'm sure you'll get heaps of answers for this.

Try:

$ for file in *.doc; do mswordview $file > ${file%.doc}.html; done

Change *.doc to a*.doc for all the ones starting with a.

Matthew

Reply via email to