there's no function that tells you if its the end of the month, but you can manipulate the 'date' function in bash, there's function in 'date' that will tell you the 'day tommorow', so you will have an idea if the current date is the end of the month
ex:
datetom=date +%d -d "+ 1 day"
if [ $datetom = "01" ]; then echo "today is the end of the month" fi
lito lampitoc wrote:
is there any bash built-in function or linux command to output a logical value if it's end of the month. Which means, it should return the value true or false.
Thanks.
-- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
-- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
