i try to run that bash code below to get the value in list and store it in variable then get basename and concatenate with it "lv-" :
lv_LST=("/usr/sap" "/sapmnt")
lv_size_as_bash=("4" "3")
((L=1))
for n in $(seq 0 $L)
do
lv_mount = ${lv_LST[$n]};
lv_size = ${lv_size_as_bash[$n]};
lvname1=$(sudo basename $lv_mount);
lvname2='lv-';
lvname=$lvname2-$lvname1;
but i get that error:
lv_mount: command not found
failed to run commands: exit status 127