Split sh string
#YOURSTRING="this_is_an_example"
#output:
#this
#is
#an
#example
for i in $(echo $YOURSTRING | tr "_" "\n")
do
echo $i
done
Wrong Willet
#YOURSTRING="this_is_an_example"
#output:
#this
#is
#an
#example
for i in $(echo $YOURSTRING | tr "_" "\n")
do
echo $i
done
IN="[email protected];[email protected]"
arrIN=(${IN//;/ })