![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cat operation | trichyselva | UNIX for Dummies Questions & Answers | 0 | 03-24-2008 03:55 AM |
| create array holding characters from sring then echo array. | rorey_breaker | Shell Programming and Scripting | 5 | 09-28-2007 05:42 AM |
| string operation | fongthai | Shell Programming and Scripting | 6 | 11-24-2006 03:26 AM |
| Problems with sum operation | burakkilic | UNIX for Dummies Questions & Answers | 2 | 05-15-2006 09:52 AM |
| multiple operation | ajnabi | Shell Programming and Scripting | 2 | 09-01-2004 01:56 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Array operation
Hi, I would like ask for you help for coding array operation.
array= ( a b c d e f ) I would like to remove entry "d" from my array and import the remaining entries back to the array. Thanks. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
What language, bash? Just unset it...
Code:
bash-3.00$ array=(a b c d e f)
bash-3.00$ echo ${array[*]}
a b c d e f
bash-3.00$ unset array[3]
bash-3.00$ echo ${array[*]}
a b c e f
bash-3.00$
|
|
#4
|
|||
|
|||
|
Thank you all.
|
|||
| Google The UNIX and Linux Forums |