![]() |
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 |
| Basic Linux Shell Scripting for Oracle DBAs | iBot | Oracle Updates (RSS) | 0 | 04-06-2008 05:10 AM |
| Shell scripting basic doubt | sendhilmani123 | Shell Programming and Scripting | 3 | 08-04-2006 06:07 AM |
| Shell Scripting Question | tech2040 | Shell Programming and Scripting | 3 | 08-10-2005 01:32 AM |
| Shell Scripting Question | tech2040 | Shell Programming and Scripting | 1 | 08-09-2005 02:34 AM |
| What is a good place to learn basic shell scripting? Thanks! | deutchap6verse5 | Shell Programming and Scripting | 2 | 03-08-2005 02:55 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
basic shell scripting question
If I did indeed grep something out of it, why woudln't $result show nothing?
When I do $? , it does show success... What is the proper syntax so that $result shows actual thing it's grepping out? result=`(ssh $host tail -1 /something/somethingelse) | egrep -i "value" >dev/null` #echo $result # #echo $? #0 |
|
||||
|
I am trying to get below to be rite...
is this rite ? in below.. (in dosomething), I cannot use elif.. since i have no condition.. can someone advise? if something then somethingelse else dosomething <----- especialli this one if something1 then somethingelse1 else somethingelse2 fi fi |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|