command - TechRepublic
General discussion
January 7, 2003 at 11:38 PM
rgooding

command

by rgooding . Updated 23 years, 5 months ago

I want to copy a file from the unix command line to a new name that has the date (and possibly time) as part of the name. For example:
cp abc.txt abc20030108.txt.

Could someone please tell me how to get the current date/time concatenated to the name of the file?

Thanks

This discussion is locked

All Comments