I have multiple files that need to be renamed with a date added to the beginning of the file name that I am trying to script.I'm using the cp command because I need to keep the original fileI need the file to be YYYYMMDDfile.txtI have used every timestamp configuration (date '+%Y%m%d') but am having no luck. I have no problems adding timestamp to end of file name just the beginning.  What am I missing?
adding date to beginning of file name using script
files;scripting;date