是否有控制台/命令行编程的标准
我的意思是,我希望我的程序以后可以重用,就像 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
标准的 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.