是否有控制台/命令行编程的标准

发布于 2024-11-29 05:59:06 字数 85 浏览 1 评论 0原文

我的意思是,我希望我的程序以后可以重用,就像 Unix 实用程序(例如,通过使用管道)

如果没有,你能给我一些提示吗?

谢谢

I mean, I'd like my programs to be reusable later, like the Unix utilities (by using pipes, for example)

If there isn't any, can you give me some tips?

Thank you

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

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

发布评论

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

评论(1

潦草背影 2024-12-06 05:59:06

标准的 unix 命令行实用程序很“简单”,因为它们接受一些输入,进行一些处理,然后生成输出。只要您的实用程序可以从标准输入(输入)读取并将输出写入标准输出,它们就可以与管道链接在一起。

Standard unix command line utilities are "simple", in that they accept some input, do some processing, then produce output. As long as your utilities can read from stdin (input) and write output to stdout, they can be chained together with pipes.

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