Search code examples
xargshunspell

Pipe arguments to hunspell with xargs


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


Solution

  • This is based on an answer by nosid here.

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

    see nosid's answer for an explanation (: