variables in unix korn shell

October 18, 2010 at 09:27:10
Specs: Windows XP
Can I set a variable in the unix korn shell to the time? I'd like to set up separate variables for the hours and minutes.

See More: variables in unix korn shell

Report •

October 18, 2010 at 12:18:10
In ksh, use command substitution, $(..), to set the output of a unix command to a variable:

myvar=$(date '+%M:%S')

Report •
Related Solutions

Ask Question