What I'd like to do is make a shell script that would automatically rename a file based on the date variable. I'll have crontab run the script everynight at midnight
so say I have podcast-currentdate.xml and at midnight of that date it would get renamed to podcast.xml and overwrite the current file with that name.
Any help is greatly appreciated, I just can't seem to wrap my head around this one.
so say I have podcast-currentdate.xml and at midnight of that date it would get renamed to podcast.xml and overwrite the current file with that name.
Any help is greatly appreciated, I just can't seem to wrap my head around this one.