ls像file manager的sort - Linux

By Joseph
at 2016-02-05T22:19
at 2016-02-05T22:19
Table of Contents
我想用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
--
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
--
Tags:
Linux
All Comments

By Sarah
at 2016-02-06T01:09
at 2016-02-06T01:09

By Necoo
at 2016-02-10T19:19
at 2016-02-10T19:19

By Brianna
at 2016-02-11T22:42
at 2016-02-11T22:42
Related Posts
越來越好用的 Linux Mint 17

By Daniel
at 2016-02-04T14:24
at 2016-02-04T14:24
mklabel用錯硬碟

By Jacky
at 2016-02-03T23:19
at 2016-02-03T23:19
這台迷你電腦拿來玩Linux的話?

By Queena
at 2016-02-03T21:45
at 2016-02-03T21:45
GCIN 無法更新或共享詞庫

By Aaliyah
at 2016-02-03T14:28
at 2016-02-03T14:28
做win10/fedora雙開機,結果兩邊都壞了

By Victoria
at 2016-02-03T13:49
at 2016-02-03T13:49