作者:
Qiqi (潑潑)
2016-02-05 22:19:08我想用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