![]() |
|
|
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 |
| Creating an array to hold posix thread ids: Only dynamic array works | kmehta | High Level Programming | 4 | 09-21-2008 09:24 PM |
| concatinating data | kingofprussia | UNIX for Dummies Questions & Answers | 1 | 05-06-2008 11:16 PM |
| create array holding characters from sring then echo array. | rorey_breaker | Shell Programming and Scripting | 5 | 09-28-2007 09:42 AM |
| Concatinating line by line from one file to other | me_haroon | AIX | 1 | 06-30-2006 03:48 AM |
| copying or concatinating string from 1st bit, leaving 0th bit | jazz | High Level Programming | 2 | 11-10-2005 12:38 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Code:
i=0
a=(a b c)
b=(1 2 3)
sum=$((${#a[@]}-1))
while [ $i -le $sum ];do
echo ${a[$i]}${b[$i]}
i=$(($i+1))
done
perl: Code:
my @arr1=(a,b,c);
my @arr2=(1,2,3);
my @arr3=map {$arr1[$_].$arr2[$_]} 0..$#arr1;
print join "|", @arr3;
Last edited by summer_cherry; 05-07-2009 at 06:31 AM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|