名称:cat
来源:互联网 发布:淘宝店铺怎么宝贝分类 编辑:程序博客网 时间:2024/06/10 12:32
使用方式:cat [-AbeEnstTuv] [--help] [--version] fileName
说明:把档案串连接后传到基本输出(萤幕或加 > fileName 到另一个档案)
参数:
-n 或 --number 由 1 开始对所有输出的行数编号
-b 或 --number-nonblank 和 -n 相似,只不过对于空白行不编号
-s 或 --squeeze-blank 当遇到有连续两行以上的空白行,就代换为一行的空白行
-v 或 --show-nonprinting
范例:
cat -n textfile1 > textfile2 把 textfile1 的档案内容加上行号后输入 textfile2 这个档案里
cat -b textfile1 textfile2 >> textfile3 把 textfile1 和 textfile2 的档案内容加上行号(空白行不加)之后将内容附加到 textfile3
说明:把档案串连接后传到基本输出(萤幕或加 > fileName 到另一个档案)
参数:
-n 或 --number 由 1 开始对所有输出的行数编号
-b 或 --number-nonblank 和 -n 相似,只不过对于空白行不编号
-s 或 --squeeze-blank 当遇到有连续两行以上的空白行,就代换为一行的空白行
-v 或 --show-nonprinting
范例:
cat -n textfile1 > textfile2 把 textfile1 的档案内容加上行号后输入 textfile2 这个档案里
cat -b textfile1 textfile2 >> textfile3 把 textfile1 和 textfile2 的档案内容加上行号(空白行不加)之后将内容附加到 textfile3
- 名称:cat
- cat
- cat
- cat
- cat
- cat
- cat
- cat
- cat
- cat
- cat
- cat
- cat
- Cat
- cat
- cat
- cat
- cat
- SQL:JOIN之完全用法
- 生活感悟----关于活着
- →『明晰C++内存分配的五种方法的区别』
- 基于IEC 61850标准的变电站自动化系统研究
- Asp.net中的页面乱码的问题
- 名称:cat
- c++ 技术文章
- ASP.NET下的FCKEditor2.4.1配置
- DataGridView控件用法合集(十)
- Linux wc命令详解
- 电脑部要封掉我们的网络,请问各位大侠有什么办法能让我的电脑能上网?
- 堆内存和栈内存详解
- 精妙SQL语句
- ubuntu samba share 共享 windows linux