title: How to check the size of all files inside a directory and empty it if it is exceeding certain size
body: <p>I am a bit new to the bash scripting and have a scenario on which i need to know the efficient way to complete.
  I need to check the size of all the files inside a directory and if the size of any files exceeds certain limit i need to empty those files and then send email to a mail ID with details like name of the files which are emptied, the original size, the current size after emptying.
  Found lots of blog on the same topic but just wanted to check the most efficient way i can complete the above scenario.</p>
  
  <p>Thanks</p>