ファイル名のデータ化

Contributed by: akira on 2011年10月30日(日) 00:59 JST

Last modified on

 ファイルの容量順に表示する。

ls -Sl >../sort.dat

-rw-r--r-- 1 kei kei 2117310464 2010-11-27 03:44 abc
....
上記データをcsvに
sed -e 's/\ /,/' -e 's/\ /,/' -e 's/\ /,/' -e 's/\ \+/,/' -e 's/\ /,/' -e 's/\ /,/' -e 's/\ /,/'  sort.txt>sort.csv

コメント (0件)

Geeklog Site - ファイル名のデータ化
https://geeklog.craine.ne.jp/article.php?story=20111030005939205