cat是单词concatenate缩写

echo 'text through stdin' | cat - file.txt

输出:text throgh stdin 和file.txt中的内容;

 

cat -s file:压缩空白行

cat -T file:标记处文件中所有的制表符为^|

cat -n line.txt :输出的内容添加行号(不会改变文件的内容的)

 

相关文章:

  • 2022-02-22
  • 2021-12-10
  • 2022-02-19
  • 2021-08-04
  • 2022-12-23
  • 2021-11-28
猜你喜欢
  • 2021-08-07
  • 2022-12-23
  • 2022-01-12
  • 2022-02-02
  • 2021-07-09
  • 2021-12-19
  • 2021-07-05
相关资源
相似解决方案