Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
file size check
Name: Aki Date: September 22, 2003 at 03:46:27 Pacific OS: solaris CPU/Ram: 320
Comment:
Hi, Can some one please tell me how can I compare size of the file. I am currently reading file, size and du utilites. But I am not sure how to go about it. I want to compare a file size to check whether it is an empty file, if it is then I want to take up some action. Can some one please tell me which is the way to go. Thanks. Aki
Summary: I'm trying to write a shell script to monitor certain files and display a warning when they reach a certain size. The idea being to give a warning BEFORE the ulimit is hit! I've fallen at the first hu...
Summary: Hello, I have an shell script to transfer a 50KB TXT file from UNIX to NT4 server. The transferred file become 4-5KB less... When I look inside the transferred file I see that some lines are deleted ...
Summary: I figured out what I needed in order to match up file sizes in perl to do what I needed to to, was quite simple- if ($filesize >= $maxfilesize) { run this block } ...