#cat test.csv
china
usajapanfucknow
#head -2 test.csv (输出前两行)
chinausa
#tail -2 test.csv (输出最后两行)
fucknow
#tac test.csv (按列反序输出 常用于查看日志)
nowfuckjapanusachina
#rev test.csv (按行反序输出)
anihcasunapajkcufwon
本文共 287 字,大约阅读时间需要 1 分钟。
#cat test.csv
china
usajapanfucknow
#head -2 test.csv (输出前两行)
chinausa
#tail -2 test.csv (输出最后两行)
fucknow
#tac test.csv (按列反序输出 常用于查看日志)
nowfuckjapanusachina
#rev test.csv (按行反序输出)
anihcasunapajkcufwon
转载于:https://www.cnblogs.com/wangkangluo1/archive/2012/05/28/2521562.html