![]() |
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 |
| NEW: need help with nawk using -v vars | wakhan | Shell Programming and Scripting | 20 | 04-26-2008 04:44 AM |
| check list for installing solaris 9 | sriny | SUN Solaris | 8 | 10-23-2006 10:54 AM |
| Passing Vars between scripts | rcunn87 | Shell Programming and Scripting | 4 | 06-23-2006 06:07 AM |
| Env vars in a SED script | Bags | Shell Programming and Scripting | 8 | 05-12-2006 02:53 PM |
| need help with nawk using -v vars | amon | Shell Programming and Scripting | 3 | 01-26-2006 06:23 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
check a list of vars
I have about 20 different variables that I need to check for null values then replace with a specific string if they are null. I've been doing this via 20 different if then statements like this:
Code:
if [ "$VAR1" = "" ]; then WIND="UUU" fi |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|