![]() |
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 |
| How to convert unix command into Awk statement | krishna_gnv | Shell Programming and Scripting | 1 | 05-20-2008 10:58 AM |
| If statement - How to write a null statement | april | Shell Programming and Scripting | 3 | 04-16-2008 01:14 PM |
| SQL statement output to Log file-How? | vsubbu1000 | HP-UX | 1 | 08-21-2007 11:40 PM |
| Want to use the output of Select statement in Unix script | akhilgoel9 | Windows & DOS: Issues & Discussions | 4 | 05-27-2005 09:52 AM |
| awk command for INSERT statement | nattynatty | Shell Programming and Scripting | 4 | 05-10-2002 02:11 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
grepping the output of a command in an if statement
Probably a really simple question but how do check/grep against the output of a command within an if statement ?? for example
Code:
if [ the output of `raidctl -l` has the string "no" in it ] then do this else do something else fi |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|