Advertisement

01.31.2007 at 10:05PM PST, ID: 22144897
[x]
Attachment Details

bash script to find size of file

Asked by chris4111 in Linux Programming

Tags: bash, file, size, script, find

hi there
I need help with the bash scripting.I am new to this scripting.
I need a script which would find the size of file given to it as parameter,if the size of the input file is zero then it should exit,if the file has some data in it i.e. size greater than zero then it should display message saying that "File has DATA".I need this with the  if statement .can any one help me with this please

Thanks in advance
cheers
chrisStart Free Trial
[+][-]01.31.2007 at 10:09PM PST, ID: 18442314

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Linux Programming
Tags: bash, file, size, script, find
Sign Up Now!
Solution Provided By: sunnycoder
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32