Search Results

Search: Posts Made By: angilulu
1,748
Posted By kshji
Bash and ksh93 you can use (( )). if ((...
Bash and ksh93 you can use (( )).

if (( ex_year >= curr_year && ex_month >= curr_month && ex_day <= curr_day ))
then
condition...
fi


This work in every sh, dash,...
1,748
Posted By Don Cragun
You don't say what shell you're using and it...
You don't say what shell you're using and it makes a big difference. With a shell conforming to the standards, the following will work:
if [ "$ex_year" -ge "$curr_year" ] && [ "$ex_month" -ge...
Showing results 1 to 2 of 2

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