In [16]:
IN="/bin/bash"
arrIN=${IN##*/}
echo $arrIN
bash
In [7]:
var="[email protected];[email protected];Full Name <[email protected]>"
while [ "$var" ] ;do
    iter=${var%%;*}
    echo "> [$iter]"
    [ "$var" = "$iter" ] && \
        var='' || \
        var="${var#*;}"
  done
In [8]:
IN="[email protected];[email protected]" 
set -- "$IN" 
IFS=";"; declare -a Array=($*) 
echo "${Array[@]}" 
echo "${Array[0]}" 
echo "${Array[1]}"
In [1]:
tag=''
if [ "$tag" = "" ]; then
        tag="latest"
fi
echo $tag
latest