All, I'm trying to figure out how to loop through an array of records (if
possible) and reference fields in that record, but I've only been able to
reference the entire array (array[0]) or when assigned with parens, there is
no concept of a row...
#!/bin/bash
array1="187431346 0323 mirrored 1186
I'm having a problem getting this to work. I'm currently doing this using a
file instead of an array, but it is too slow. Here's what I'm trying to do:
For each record in my main array (array1), I want to get a match out of
array2 and append it to the array1 record. After I get the match, I want
--
View this message in context:
http://www.nabble.com/remove-elements-from-an-array...-tp22440301p22440301.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.
I'm trying to check for a directory and create it if it doesn't exist as
follows:
CommonDir="../common"
if [ -d ${CommonDir} ]; then
mkdir "${CommonDir}"
fi
It works from the command line, but my script doesn't seem to like it and I
can't figure it out.
Thanks for any help,
Duane
--
View th