[問題] ls像file manager的sort
我想用ls列出像是file manager預設的sort的樣子,像是:
0_0.txt
0_1.txt
0_2.txt
.
.
.
0_10.txt
0_11.txt
.
.
.
0_15.txt
1_0.txt
1_1.txt
.
.
.
15_15.txt
單純用sort -n好像沒用,我也google不到好的關鍵字
有請鄉民們提供見解
附上example:
for i in {0..15}
do
for j in {0..15}
do
touch $i"_"$j".txt"
done
done
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 223.141.184.5
※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1454681951.A.992.html
※ 編輯: Qiqi (223.141.184.5), 02/05/2016 22:19:37
→
02/05 22:31, , 1F
02/05 22:31, 1F
推
02/05 23:45, , 2F
02/05 23:45, 2F
→
02/06 12:01, , 3F
02/06 12:01, 3F
Linux 近期熱門文章
21
56
PTT數位生活區 即時熱門文章