![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Finding mail per hour | Prince2 | Shell Programming and Scripting | 2 | 05-22-2008 12:50 PM |
| help in hour grep | ali560045 | Shell Programming and Scripting | 0 | 01-31-2008 03:03 AM |
| AIX 5.3 12 Hour System Clock | RTwitchell | AIX | 2 | 04-10-2007 04:02 PM |
| 1 Hour less | bobo | UNIX for Dummies Questions & Answers | 6 | 05-16-2006 12:07 PM |
| record wc -l over 24 hour period | csaunders | Shell Programming and Scripting | 5 | 12-09-2005 02:49 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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 |
|
||||
|
just for inf purpose only
if [ $h -lt 10 ] then h=0$h fi |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|