Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

To write a script to check Binary files reaching size more than 1.8 G.

Status
Not open for further replies.

shilpa1sai

IS-IT--Management
May 22, 2004
3
US
PHV,

I am totally new into shell scripts.

I would really request your help to put a small script to get this objective fulfilled.

Please do help me Sir!!

Thanks and warm cheers

Sairam

Objective:
To write a script to check Binary files reaching size more than 1.8 G.

I am in a fix.I have a directory which has binary files.I have file sizes that are growing beyond 1.8 G.Can somebody help me to get a script that will check these binary files size have reached more than 1.8G or not.

I know the logic flow but not the syntax.
-----------------------------------------------------------
Check the file size(binary files)in a given directory
If the size is greater than 1.8G
write a warning messsage into a temproary file(say zyz which is already created)
else
write no problem and come out.
-----------------------------------------------------------

Your quick response is much appreciated as I know in your past experience Gurus like you would have come across this scenarios.

Thanks and warm cheers

Saisan

 
Crossposting (thread822-846405) is not considered a good practice, here at Tek-Tips, nor personnal asking.
That said, consider the following as a starting point:
find /path/to/dir -size +3600000

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top