Noisy Days in August, 2011

- last 10 days of month -

top / latest diary
topics all / music / book / movie / comp

上旬 / 中旬 / 下旬

<< < 2011/08 >
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Ganerated by nDiary version 0.9.4

2011.08.23 (Tue)

[comp] 複数の file への symbolic link を一つの directory にまとめる (2)

 これの続き。
 find の結果を sort して link るサンプル。


$ cd targetdir
$ num=1; find ~/mp3dir/ -name \*.mp3 | sort -n | while read f; do ln -s "$f" `printf "%04d" $num`_$(basename "$f"); num=$(($num+1)) ; done
log modified: 2011/08/23 20:25:52 JST

上旬 / 中旬 / 下旬