NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
把 textfile1 的文档内容加上行号后输入 textfile2 这个文档里: ~~~ cat -n textfile1 > textfile2 ~~~ 把 textfile1 和 textfile2 的文档内容加上行号(空白行不加)之后将内容附加到 textfile3 文档里: ~~~ cat -b textfile1 textfile2 >> textfile3 ~~~ 清空 /etc/test.txt 文档内容: ~~~ cat /dev/null > /etc/test.txt ~~~