Pipe arguments to hunspell with xargs

229 views Asked by At

I'm trying to run hunspell over my source tree. However when I run this:

find . -name *.html | xargs hunspell -H

The Hunspell editor comes up on the screen, but it won't accept any typed input - all of the input appears at the next command prompt when I type Ctrl+C to exit the hunspell editor. Is there a way I can pipe files to hunspell?

Thanks, Kevin

1

There are 1 answers

0
drevicko On BEST ANSWER

This is based on an answer by nosid here.

xargs -a <(find . -name *.html) hunspell -H

see nosid's answer for an explanation (: