I have a parameters.txt with days parameter that store different days in the month.
Days: 1,5,31
I want to create a bash script that will read the parameter "Days" and compare the days that separated with "," to current day. And if current day equal to one of those days it will echo "true".
But i'm facing some troubles: how do I read the days parameter from the bash script, and read each day and compare to current day? I succeeded to read the whole line with the
, ,
Also when I try to get current day with $d I get the days like 01 ,02 and so on. but in my parameters the days are 1 , 2 ...
parameters.txtfile.