Blog about system engineering, programming and networks
cat /tmp/list | perl -e 'do { $a=`stat -c "%s" $_`; chomp $a; $b+=$a } for <>; print $b/1024/1024/1024'
до кучиfor i in `cat list`; do du -b $i; done | awk '{ s+=$1 } END { print s/1024/1024/1024"G" }'
Интересный вариант, спасибо :)
Note: only a member of this blog may post a comment.
до кучи
ReplyDeletefor i in `cat list`; do du -b $i; done | awk '{ s+=$1 } END { print s/1024/1024/1024"G" }'
Интересный вариант, спасибо :)
ReplyDelete