Search Results

Search: Posts Made By: pbmitch
773
Posted By pbmitch
Merging 2 Arrays in a script
I am creating (with help) my own version of a calculator script that simply merges 2 arrays ( ${a[0]}${b[0]}${a[1]}${b[1]}... etc )

#!/bin/bash
echo "Enter the integers you would like to...
3,629
Posted By pbmitch
Yes, hergp, that is exactly what I am trying to do
Yes, hergp, that is exactly what I am trying to do
3,629
Posted By pbmitch
Merging 2 Arrays
I am trying to create a script that combines 2 arrays:

#!/bin/bash
read -a unix #(a c e g)
read -a test #(b d f)

#now I want to merge ${unix[@]} with ${test[@]}, one after another such...
Showing results 1 to 3 of 3

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