8.2-文件处理
# 结合 输入 输出 使用
cat ok
cat -n ok
cat -n passwd | grep ^root # 管道
cat passwd | head -2
cat passwd | tail -2
more passwod # 分页 空格 ctrl+b
less passwd #
vim sort.txt # 写入内容
cat sort.txt | uniq -c
uniq -c sort.txt | sort
paste passwd sort.txt | head -2