Run script,and specify the following parameters after the script name.
Month Day Hour Minute Seconds Year
#Need to add read lines for $1 - $6 user input
date_proc () # MM dd hh mm ss yy ¦#
# dialogue param order # 2 3 4 5 6 1 ¦#
{
yy=$1
MM=$2
dd=$3
hh=$4
mm=$5
ss=$6
yy=${yy##*(0)}
yy=${yy##*(0)}
MM=${MM##*(0)}
dd=${dd##*(0)}
hh=${hh##*(0)}
mm=${mm##*(0)}
ss=${ss##*(0)}
DATE_STR=`/usr/bin/printf \"%02d%02d%02d%02d.%02d%02d\" $(($MM)) $(($dd)
) $(($hh)) $(($mm)) $(($ss)) $(($yy))`
/usr/bin/date \"$DATE_STR\"
}
date_proc \'08\' \'11\' \'05\' \'14\' \'01\' \'00\'
If you fall behind, run faster. Never give up, never surrender, and rise up against the odds. See the link below for more info.
ReplyDelete#run
www.ufgop.org