The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 08-12-2008
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Staff  
Moderator(The Tutor)
  
 

Join Date: Jun 2008
Location: INDIA
Posts: 1,418
try this....

ls -lrt|awk '$5 > 10485760 {print}' > ./big.txt
if [[ -s ./big.txt ]] ; then
/usr/bin/mailx -s 'file too big ' abc@xyz.com < big.txt

Last edited by vidyadhar85; 08-12-2008 at 11:01 PM..