Created
          August 10, 2014 00:10 
        
      - 
      
- 
        Save ncimino/147a9e33e6beccf351f2 to your computer and use it in GitHub Desktop. 
    Quickly find total size (in bytes) of all files matching pattern
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | find /path/to/files -type f -print0 | xargs -0 ls -l | awk '{x+=$5} END {print "total bytes: " x}' | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment