![]() |
|
|
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 |
| Remove matching lines with list of strings | Nanu_Manju | Shell Programming and Scripting | 6 | 10-29-2008 05:11 AM |
| comparison of strings in unix shell scripting | piscean_n | Shell Programming and Scripting | 1 | 01-11-2008 01:24 PM |
| Returning Strings from C program to Unix shell script | venkatesh_sasi | High Level Programming | 24 | 11-28-2007 04:48 AM |
| matching characters between strings | akmtcs | UNIX for Dummies Questions & Answers | 9 | 12-08-2006 09:04 AM |
| Returning Strings from C program to Unix shell script | satguyz | High Level Programming | 11 | 12-30-2005 03:41 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Matching strings in unix shell programming
Code:
#!bin/sh `clear` for i in $(seq -w 15 37); do #echo $i wget --dns-timeout=0.0005 http://napdweb${i}.eao.abn-iad.ea.com:8000/webcore/test/test.jsp -o 1 A=`cat 1` C=$(expr "$A" : '.............................................................................................................................\(......................\)') D=": Connection timed out" if [ "$C" = "$D" ] ; then echo "napdweb${i} may be hung,Please restart the server" else echo "napdweb${i} is up and fine " fi done |
| Bookmarks |
| Tags |
| shell script, shell scripting, unix scripting, unix scripting basics |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|