Search Results

Search: Posts Made By: zarere
16,077
Posted By RudiC
OK. echo $((10#${dates}%2)) obviously yields 0,...
OK. echo $((10#${dates}%2)) obviously yields 0, if [ ${dates%2} -eq 0 ]; doesn't. What conclusion would YOU draw?
16,077
Posted By RudiC
You should use bash's integer arithmetics. And,...
You should use bash's integer arithmetics. And, btw, using a variable with the same name as a command works, but can become veeery misleading sometime! Tryecho $((10#${date}%2))
You can avoid the...
Showing results 1 to 2 of 2

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