标签:ext -- text 脚本 技巧 std nat shell脚本 添加
cat是单词concatenate缩写
echo ‘text through stdin‘ | cat - file.txt
输出:text throgh stdin 和file.txt中的内容;
cat -s file:压缩空白行
cat -T file:标记处文件中所有的制表符为^|
cat -n line.txt :输出的内容添加行号(不会改变文件的内容的)
标签:ext -- text 脚本 技巧 std nat shell脚本 添加
原文地址:http://www.cnblogs.com/hujianglang/p/6979403.html