I have a script which selects two 'sets' of system LVM device files from a tabular file 'mapfile' using awk :
LIVELV=`awk '{print($1)}' mapfile`
BCVLV=`awk '{print($3)}' mapfile`
I wanted to pass these 'sets' into an LVM command 'loop' along the lines of :
lvmerge $BCVLV $LIVELV
ie. for each device file in column 1 of the file 'mapfile' merge in the device in column 3 of the same line.
I have messed about for hours with a for loop but I don't think this will handle the two different sets of variables in the same statement ?
I am probably approaching this from completely the wrong angle.
Any advice would be gratefully received - scripting isn't my strong suit - but god knows I'm trying !