![]() |
|
|
|
|
|||||||
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Finding mail per hour | Prince2 | Shell Programming and Scripting | 2 | 05-22-2008 09:50 AM |
| help in hour grep | ali560045 | Shell Programming and Scripting | 0 | 01-30-2008 11:03 PM |
| AIX 5.3 12 Hour System Clock | RTwitchell | AIX | 2 | 04-10-2007 01:02 PM |
| 1 Hour less | bobo | UNIX for Dummies Questions & Answers | 6 | 05-16-2006 09:07 AM |
| record wc -l over 24 hour period | csaunders | Shell Programming and Scripting | 5 | 12-09-2005 10:49 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
My program:
__________________________________ #!/bin/ksh DAY=`date +%y%m%d` H=`date +%H` M=`date +%M` day=`date +%m/%d/%y` let h=$H-1 echo DAY $DAY echo H $H echo M $M echo day $day echo h $h _____________________________________ My result: ______________________________________ DAY 061023 H 09 M 38 day 10/23/06 h 8 _______________________________________ My need help: on the "let h=$H-1" I have the result of number 8; how can I make it 08 ( have the zero in front of 8) please help |
| Forum Sponsor | ||
|
|
| Thread Tools | |
| Display Modes | |
|
|