使用 xargs 将参数通过管道传递给 hunspell

发布于 2024-12-28 10:22:57 字数 238 浏览 3 评论 0原文

我正在尝试在我的源树上运行 hunspell。但是,当我运行此命令时:

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

Hunspell 编辑器出现在屏幕上,但它不接受任何键入的输入 - 当我键入 Ctrl+C 退出 hunspell 编辑器时,所有输入都会出现在下一个命令提示符处。有没有办法可以将文件传输到 hunspell?

谢谢, 凯文

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

有木有妳兜一样 2025-01-04 10:22:57

这是基于 nosid 此处

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

请参阅 nosid 的答案了解解释(:

This is based on an answer by nosid here.

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

see nosid's answer for an explanation (:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文