【发布时间】:2015-07-06 18:37:48
【问题描述】:
我有一个文件 parse.txt
parse.txt 包含以下内容
remo/hello/1.0,remo/hello2/2.0,remo/hello3/3.0,whitney/hello/1.0,julie/hello/2.0,julie/hello/3.0
我希望 output.txt 文件作为(将顺序从最后一个到第一个颠倒)使用 parse.txt
julie/hello/3.0,julie/hello/2.0,whitney/hello/1.0,remo/hello3/3.0,remo/hello2/2.0,remo/hello/1.0
我尝试了以下代码:
tail -r parse.txt
【问题讨论】: