![]() |
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 |
| what is the right syntax ?? | convenientstore | Shell Programming and Scripting | 7 | 06-04-2007 04:21 AM |
| csh syntax | charlie11k | UNIX for Dummies Questions & Answers | 0 | 06-01-2007 02:29 AM |
| What does this syntax mean... | DrAwesomePhD | UNIX for Dummies Questions & Answers | 1 | 07-31-2006 11:54 AM |
| if-else syntax in csh | rajan_ka1 | Shell Programming and Scripting | 1 | 11-02-2005 06:54 AM |
| sed syntax | jo_aze | UNIX for Dummies Questions & Answers | 4 | 03-14-2002 09:12 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
syntax for CAT in ksh
Just want to ask if the below code is correct;
if [ {cat out.txt |wc -l} -eq 0 ]; then echo "No log found from " $data exit 0 else cat out.txt fi this is to test if the content of out.txt is 0 then message appear that there is no log. Is this correct? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|