![]() |
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 |
| problem with the blank spaces in array | kamicasse | UNIX for Dummies Questions & Answers | 4 | 12-06-2007 02:40 PM |
| create array holding characters from sring then echo array. | rorey_breaker | Shell Programming and Scripting | 5 | 09-28-2007 08:42 AM |
| longjmp never returns | axes | High Level Programming | 2 | 09-10-2006 08:22 PM |
| inet_addr() returns 0 | soulfactory2002 | High Level Programming | 1 | 06-02-2005 04:25 PM |
| cant find command that returns blank line | jeffersno1 | UNIX for Dummies Questions & Answers | 2 | 11-15-2001 04:14 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
first value of array returns blank
Hi,
Please can you someone help me out to eliminate the problem. Here, it correctly prints the myFilenameCount but returns the first value of array myFilenamePatterns as blank. Thanks, Sudhakar i=0 get_config_values_from_mediation_cfg "FILENAME_PATTERN"|while read myFilenamePatterns[${i}] do echo "FilenamePattern: ${myFilenamePatterns[$i]}" (( i += 1 )) done myFilenameCount=${i} echo $myFilenameCount echo "returned array: ${myFilenamePatterns[@]}" i=0 while [ $i -lt $myFilenameCount ] do echo "FilenamePatterns: ${myFilenamePatterns[${i}]}" (( i += 1 )) done |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|