[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: date - if - bash



it gives an output, yes, but if "date +%H" is smaller then 10, it still says "later then 10h"

if [ $(date +%H) > 10 ]; then echo "later then 10h"; else echo "before 10h"; fi;
Reply to: