![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| command to find out total size of a specific file size (spread over the server) | abhinov | SUN Solaris | 3 | 08-08-2007 07:48 AM |
| Find lines greater than 80 characters in a file | mrgubbala | Shell Programming and Scripting | 8 | 03-11-2007 12:51 AM |
| Find in file. Does this exist under UNIX? | scampsd | UNIX for Dummies Questions & Answers | 2 | 01-19-2006 11:24 AM |
| File size greater than 0 | skammer1234 | Shell Programming and Scripting | 1 | 08-03-2002 11:30 AM |
| file exists and size greater that zero | methos | Shell Programming and Scripting | 3 | 03-25-2002 01:44 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Can I find wether a particular file exist and size greater than zero in one line command.
similar to this if [-f *.log] && [ -s *.log] something in one if test .... e.g. if [-f -s ????] 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 true or any one is true |
|
||||
|
You might find this helpful: can't TEST multiple arguments for a file
|
|
||||
|
can i find the size of the file ! ....
Quote:
hi ... what i mean is here below I have a folder which have files + sub folders (which in turn contain files). The files in foder or sub folder might be empty or size greater than zero. now if I use TEST then it is only going to find the files in the curent folder. but it will not give me the information about the files inside the sub folder. now how can i get the information of both the files present inside folder or subfolder wether they are greater than zero or not ( empty or not) Thanks for ur co-operation .. looking forward for the reply **************************************** |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|