Search Results

Search: Posts Made By: vidya.b27
96,367
Posted By vidya.b27
Thank you :)
Hey KSHJI

Your below code helped me alot
n=${#array1
}
i=0
while (( i < n ))
do
print "${array1[$i]} ${array2[$i]}"
(( i+=1 ))
done

Thanks alot
96,367
Posted By vidya.b27
What if upper limit of array is not known
Hi,
I am taking the inputs given to script into an array like:
array1=( `echo " $@ "` )
array2=( `echo " $@ " |tr '[a-z]' '[A-Z]'` )
So when I want to use values of both the above arrays in...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 06:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy