UNIX: How to find out the total size of files from multiple directories

advertisements

_____________________________________________________________________________________________________________________

The Eucharistic Miracles of the World
ls -ltr |awk '{ sum+=$5 } END {print "Bytes In MB:" sum/1024/1024}'
ls -ltr |awk '{ sum+=$5 } END {print "Bytes In GB:" sum/1024/1024/1024}'
ls -ltr /orabkup0[1-3]/PROD/physical/pool_??/*bkp |awk '{ sum+=$5 } END {print "Bytes In Gb:" sum/1024/1024/1024}'

_____________________________________________________________________________________________________________________

Website Stats

0 comments:

Post a Comment

Labels

Oracle (629) Script (86) General (77) Unix (47) Blog (23) Technology (19) gadget (6) games (6) Business (3) OCI (3) SQL* Loader (3) Datapump (2)
 

acehints.com Copyright 2011-23 All Rights Reserved | Site Map | Contact | Disclaimer