文档查看命令总结( cat,head,tail,tac, nl, rev)
#cat test.csv
china
usa
japan
fuck
now
#head -2 test.csv (输出前两行)
china
usa
#tail -2 test.csv (输出最后两行)
fuck
now
#tac test.csv (按列反序输出 常用于查看日志)
now
fuck
japan
usa
china
#rev test.csv (按行反序输出)
anihc
asu
napaj
kcuf
won