The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
Sponsored Content
Full Discussion:
if, else help!
Top Forums
Shell Programming and Scripting
if, else help!
Post 302291828 by mehrdad68 on Thursday 26th of February 2009 11:33:30 AM
02-26-2009
mehrdad68
Registered User
if, else help!
Hi,
I've got the following script:
YEAR=`date '+%Y'`
MONTH=`date '+%m'`
DAY=`date '+%d'`
HOUR=`date '+%H'`
MINUTE=`date '+%M'`
LASTHOUR=$((HOUR-1))
What i like to do is:
if $LASTHOUR < 9 then
function1
else
function2
tnx
mehrdad68
View Public Profile for mehrdad68
Find all posts by mehrdad68
Member Badges and Information Modal
×