Computing.Net > Forums > Unix > Check file size in c shell script?

Check file size in c shell script?

Reply to Message Icon

Original Message
Name: dado1
Date: September 24, 2005 at 17:16:25 Pacific
Subject: Check file size in c shell script?
OS: Win XP
CPU/Ram: 1GB
Comment:

Hi,
I want to use an 'if statement' that will check if the file is greater in size than a certain value, but cannot get it to work. I know that adding 'c' to a value makes it in kilobytes and that + means greater and - less, but I do not know how to use 'size' command with this because if(size +10c filename) does not work for me.
Your help is appreciated!


Report Offensive Message For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Check file size in c shell script?

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software