day="2022-06-16"; echo $day y=`echo ${day} | cut -d- -f1` m=`echo ${day} | cut -d- -f2` d=`echo ${day} | cut -d- -f3` echo $y $m $d ----------------------------------- [kondo@lxplus720]~/shell% source cut.sh 2022-06-16 2022 06 16