What is the best way to check the size of a file? We have a problem with our repository growing to an unmanageable size. If it is greater than 17000000 then I'd like to send a warning to our system administrators. (2 Replies)
Hi,
I'm currently trying to write a script that checks a log file for certain errors. Once checked it then records the filesize in another file. All this is fine, my problem is that the next time I do my error check I only want to check from previously recorded filesize to the end of file. I'm... (2 Replies)
I want to check the files in particular directory are more that 0 Bytes i.e, Non zero byte file. The script should print a msg if all the files in that directory are empty( 0 Byte). (2 Replies)
Hi All,
I am new to unix scripting, please help me in completing this exercise,
I have a scenario as follows,
1. i have a text file(snapshot.txt) consisting of directory names, and file
size separated by comma as shown below:
snapshot.txt data:
... (1 Reply)
Hello
I have srv RHEL5, file system UTDM (EMC DiskXtender Unix/Linux File System Manager 3.5 & EMC Centera).
it all works under the scheme: have disk is formatted with a file system UTDM, drive open network - NFS, it write data, then migrate the data in the repository - EMC Centera.
There are... (0 Replies)
Hi
I am doing a FTP process through which I am copying a file from my local server to Remote server. After this I want to check the size of the file
Below is my program:
LOCALDIR=/batch/ediprocess
REMOTESERVER=test.appl.com
REMOTEPATH=batch/ftpTest
LOGIN=px
PASSWORD=abcd
ftp -n... (3 Replies)
Hi Team,
I am a new bie to unix and want to check a directory for a files with extension *.doc exceeding a specific file size limit,and will give me a buffer ooutput as below
I used below command,
find . -name \*.doc -size +3k -printf "|%p |%k KB"
which resulted as,
./ABC_sw_high.doc ... (1 Reply)
Hi,
I am a SAP- ABAP programer , i have only little knowledge of Unix.
My issue is i have a list of files which are in internal table.
I want to create a script which consist of all these files and in one go i can check in the unix server about there existance and there file size.
Can... (2 Replies)
HI ,
How can I check if a file exists in a particular folder and it exists it size in greater than 0 kb.
Basically I am trying to write a script which will check if a file exists and if exists then it size is greater than 0 bytes (I am not looking for empty files it should have some data... (3 Replies)