title: UNIX script to send an alert mail if file size of a flat file is zero or otherwise
body: <p>I'm looking for ways to have an automated process that checks the size of a flat file in a particular location if it is zero or otherwise. Currently, I am doing it manually by going to the location and to check it. This is tedious work since I'm doing this from time to time. Could someone guide me from here? It could be a shell script in a server that when I run, it will send an email to myself and others.</p>
  
  <p>Hoping for your kind response. All I see here are batch files which is not applicable to me.</p>
  
  <p>sample:</p>
  
  <p>location</p>
  
  <p>server_name/folder1/folder2/folder3</p>
  
  <p>file: test_file.dat 0 bytes</p>