ls -lrt | grep "Feb 17" | awk '{tot += $5;ct +=1; print $9 " " $5/(1024*1024) "Mb"} END {printf(" Files : %s TOTAL SIZE %4.2f Gb\n",ct,tot/(1024*1024*1024))}' Remove files ls -lrt | grep "Feb 19" | cut -d":" -f2 | cut -d" " -f2 | xargs rm -rf |
Friday, 27 February 2009
Total size of an arbitrary list of files
Posted by Ook at 03:17
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment