10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
How do I find the files greater than or equal to a given size using find command.
find ./ -size +0k --> Lists files greater than 0K
find ./ -size 0k --> Lists the file size equal to 0K.
I have other conditions to check, hence using find command.
Thanks in advance. (4 Replies)
Discussion started by: deepakwins
2. Emergency UNIX and Linux Support
We are regularly using for our testing, where we are manually filling up the mount with desired size with following command
dd if=/dev/zero of=file_2GB bs=2048000 count=2000
We are planning to automate the task where taking input for % of size as one input and the name of the file system... (8 Replies)
Discussion started by: chandu123
3. UNIX for Dummies Questions & Answers
i have some files of specific pattern ...i need to look for files which are having size greater than zero and move those files to another directory..
need to find out which is having the size >0 and move those to target directory..... (7 Replies)
Discussion started by: dssyadav
4. Shell Programming and Scripting
I have created an empty file and a symbolic link to a file. But when I issue the following commands, I am getting the output 2.
stat -c "%s" linkfile
du -hb linkfile
Why this is happening? (4 Replies)
Discussion started by: royalibrahim
5. Shell Programming and Scripting
OS:AIX 64 bits using korn shell.
shell script to check file size greater than 50M and send mail alert.
Thanks for your time!
Regards, (3 Replies)
Discussion started by: a1_win
6. Shell Programming and Scripting
Can any tell me how to filter the list of files greater than the size specified by user. The size should be provided by user as an input.
shiva (6 Replies)
Discussion started by: shivu
7. UNIX for Dummies Questions & Answers
AIX 5.3 / KSH
I have a Java application which creates a log file a.log. I have a KSH script which does the following action
cp a.log /directory2/b.log
After this the file size goes to 0 as per "ls -l"
Then next time when the application writes into this file, the file size... (4 Replies)
Discussion started by: firdousamir
8. UNIX for Dummies Questions & Answers
$ls -lrt mydir
drwxrwxrwx 2 nobody nobody 512 Aug 8 11:51 tmp
drwxrwxrwx 2 nobody nobody 4608 Jan 19 12:20 web.cache
$ ls -lrt mydir/web.cache/
$ ls -lrt mydir/tmp/
Can anyone explain me the above results? I know the o/p of ls, but this... (3 Replies)
Discussion started by: rahulrathod
9. Shell Programming and Scripting
Can I find wether a particular file exist and size greater than zero in one line command.
similar to this
something in one if test .... e.g. if
1.) is it possible ? ... if yes how
2.) what would be the return type in case there is success or failure. I mean if both are... (4 Replies)
Discussion started by: guhas
10. Shell Programming and Scripting
ok I want to know how to touch a file and find out that it is greater than 0 then if it is not I want to fail the job other wise I want to success amnd go on. Can anyone help.
Shannon Kammer (1 Reply)
Discussion started by: skammer1234