![]() |
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 |
| check if a variable contains a string | melanie_pfefer | UNIX for Advanced & Expert Users | 11 | 02-02-2009 07:46 AM |
| How to check if a variable contains a . | gekkos | Shell Programming and Scripting | 3 | 11-27-2008 03:00 PM |
| to check variable if its non numeric | sachin.gangadha | Shell Programming and Scripting | 3 | 12-06-2007 05:33 PM |
| how to check null variable | sachin.gangadha | Shell Programming and Scripting | 2 | 12-06-2007 04:59 PM |
| Check if variable is set in script | frustrated1 | Shell Programming and Scripting | 3 | 08-19-2005 03:22 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
check if a variable is not affected
Hi all,
to check that a variable is not empty, I usually do: if [ -z "$a" ]; then... or if [ -n "$a" ]; then... what if I have a serie of variables and want to do the same test on all of them. How to do this in a single if statement? thank you |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|