Search Results

Search: Posts Made By: Masterpoker
5,069
Posted By Masterpoker
Oop! I didn't see it! it worked. Thanks guys!...
Oop! I didn't see it! it worked. Thanks guys! This is closed.
5,069
Posted By Masterpoker
I got some errors. #!/bin/ksh ...
I got some errors.


#!/bin/ksh

you=$LOGNAME
hour=`"+%H"`
print "The time is: $(date)"

case "$hour" in
[0-9]|1[0-1]) echo "good morning" ;;
12) echo "lunch time"
1[3-7]) echo "good...
5,069
Posted By Masterpoker
Convert to case statements from if/elif
Hello, I wrote the case on code but it mistakes. I am not sure.

If/elif code:

#!/bin/ksh
you=$LOGNAME

hour=`date | awk '{print substr($4, 1, 2)}'`

print "The time is: $(date)"

if ((...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 09:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy