split

Published: Wednesday, Dec 26, 2007 Last modified: Wednesday, Dec 2, 2020

How do I split “2003-03-15 184929” into $DATE and $NUM?

sysfault$ set -- ${var}; DATE=$1 NUM=$2; echo $NUM