![]() |
|
|
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 |
| Error message while executing the shell script | ajayyaduwanshi | Shell Programming and Scripting | 4 | 10-25-2007 08:12 AM |
| Suppress error message in unzip | skwyer | Shell Programming and Scripting | 5 | 09-26-2007 06:20 PM |
| How to suppress error messages in script | helper2007 | Shell Programming and Scripting | 5 | 01-17-2007 04:46 AM |
| suppress bash's "Done" message | momiji | Shell Programming and Scripting | 5 | 08-31-2006 11:45 PM |
| problem with script and syntax error message | ReV | Shell Programming and Scripting | 5 | 01-20-2006 06:50 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Suppress error message in shell script
Hi All
this is a simple script #! /bin/bash FileCnt=`ls -lrt $DIR/* | wc -l` echo $FileCnt how could i escape the error msg if there are no files in $DIR ls: /home/sayantan/test/files/cnt/*: No such file or directory 0 Looking forward for a quick reply Regards, Newbie Happy New Year |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|