在linex系统 中cat如何使用,今天来记录下常用命令,cat命令详解
linux获取文件所有内容, 文件名字:text.txt
cat test.txt
无论是否为空行,都显示行号
cat -n test.txt
倒序输出,其实就是cat倒过来写即
tac test.txt
显示行号,除了空行
cat -b test.txt
连续读取两个文件,按顺序输出
cat test1.txt test2.txt
在linex系统 中cat如何使用,今天来记录下常用命令,cat命令详解
linux获取文件所有内容, 文件名字:text.txt
cat test.txt
无论是否为空行,都显示行号
cat -n test.txt
倒序输出,其实就是cat倒过来写即
tac test.txt
显示行号,除了空行
cat -b test.txt
连续读取两个文件,按顺序输出
cat test1.txt test2.txt