Search Results

Search: Posts Made By: grulos
34,564
Posted By grulos
in bash you could do (( ${a:0:4} <= ${b:0:4}...
in bash you could do
(( ${a:0:4} <= ${b:0:4} )) && echo true || echo false
or if you want to check year AND day
(( ${a:0:4} <= ${b:0:4} && ${a:5:2} <= ${b:5:2} )) && echo true|| echo false
Showing results 1 to 1 of 1

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