lsblk -o NAME | grep -A1 -w "sdh" |grep -v "sdh"
mpathw
Note the above output
I would like to create variable called $MPATH
echo $MPATH using the input of the above
echo $MPATH
mpatchw
Basically, I am trying to grab the NAME after the bar/dash configuration
------ Post updated at 09:32 PM ------
WORK=`lsblk -o NAME | grep -A1 -w "$DISK" |grep -v "$DISK"`
WORK2=${WORK:2}
Figured this out - I was not thinking at the time