![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| C function to test existence of a login | xavier054 | High Level Programming | 2 | 03-04-2008 01:51 PM |
| Checking the existence of a file.. | igandu | Shell Programming and Scripting | 7 | 06-13-2007 03:47 AM |
| File existence | mpang_ | Shell Programming and Scripting | 2 | 03-27-2006 11:27 AM |
| How to test for a specific file size | GEBRAUN | UNIX for Dummies Questions & Answers | 1 | 02-20-2006 11:50 AM |
| Loop for file existence | bd_joy | UNIX for Dummies Questions & Answers | 2 | 02-02-2006 12:51 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
how to test for file existence using file size?
ok im doing this in a normal shell. i need to check the file in the script. how should i write the if else statment?
if the filesize contains 0kb then it will echo out file contains nothing else if the script contains more than 0kb then it will echo out file exist. any one care to help? thanks ! im new to unix scripting.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|