![]() |
|
|
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 |
| Need help in While Condition | raghav1982 | Shell Programming and Scripting | 5 | 10-30-2007 06:11 PM |
| if..else condition | dr46014 | Shell Programming and Scripting | 3 | 10-29-2007 11:14 PM |
| if condition | ravi raj kumar | Shell Programming and Scripting | 1 | 04-06-2007 06:01 AM |
| if condition | mahabunta | UNIX for Dummies Questions & Answers | 1 | 09-26-2006 11:47 AM |
| help with if condition | rkap | UNIX for Dummies Questions & Answers | 2 | 05-23-2005 08:25 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
need help in IF condition!!
Hi All ,,
This is my code .. i am checcking a file temp66.txt , when i execute this shell it checks whether the file is 0 byte file or not .. if it is a 0 byte file , then Program exists out else it Prints the Echo Statement .. if [ -s temp66.txt] then RET_CODE=$? if [ $RET_CODE -ne 0 ] then echo 'File is Zero ' exit 99 fi else echo "Shell Worked" Please help me on this !! i am working on something which will help me when this is resolved !! fi |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|