Easy Question: Using the Date Command in a script
Posted on 2004-09-15
I'm new to linux scripting and Im trying to use the Date command in my script but can't completely figure out what the problem is. I'm trying to have it show the Month Day, Year. So for example today it would show Sep 15, 2004. I have it in my script as
date +%h +%d +%Y
but I get a "too many non-option arguments" error, and also how can I put in the comma to seperate the day from the year?