![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Checking the Empty line in csv file | sollins | Shell Programming and Scripting | 4 | 05-15-2008 08:48 AM |
| how to echo the file contents LINE BY LINE | newbie168 | Shell Programming and Scripting | 4 | 02-22-2006 06:43 AM |
| if test for empty and non-existing file | GNMIKE | Shell Programming and Scripting | 3 | 10-21-2005 03:51 AM |
| empty line | YoYo | Shell Programming and Scripting | 4 | 09-22-2005 12:14 AM |
| printing an empty line in a file (perl) | kfad | Shell Programming and Scripting | 3 | 05-07-2005 04:10 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
${TEST:?} will cause your script to exit immediately. If you want to exit more
gracefully or do some cleanup, the following method of testing for an null or empty string may be more useful. Code:
#!/usr/bin/ksh TEST= if [[ ! $TEST ]] then echo "empty" fi |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|