To untar all tarballs
$ for i in `ls -1 --color=never`;do tar -xjf "$i";done
Zipping all directory to echo directory which with prefix as $i
$ for i in `ls -1d --color=never */`;do 7z a -mx=9 "$i".7z "$i";done
Zipping all directory to current direcotry with directory name as its prefix
$ for i in $(ls -1d --color=never *`;do 7z a -mx=9 $i.7z $i;done
沒有留言:
張貼留言