I'm trying to spell check all the *.md files in my current directory but the following command fails:
>> find . -maxdepth 1 -name "*.md" | xargs -I {} aspell check {}
xargs: aspell: exited with status 255; aborting
I'm assuming this is because aspell requires stdin to interact with the user and somehow xargs doesn't provide it. I found a hack on Twitter,
find . -maxdepth 1 -name "*.md" | xargs -n 1 xterm -e aspell check
but this opens up a new xterm each time. How can I get my original command to work as if I were to individually run aspell on the results of my find command?