copying a file

Jean-Pierre A. Radley appl at jpr.com
Wed Mar 17 14:02:26 PST 2004


Robert pulliam propounded (on Wed, Mar 17, 2004 at 04:55:29PM -0500):
|     I want to copy a key file to a file that contains a date.  How do I
| append a date to the file name. I would like the file name to be hl and a
| date.
| The actual filename would be hl031704 and so on.
| The copy command would be like cp key hi and the date the file is copied.

cp some_file ../some/path/hl`date +%y%m%d`

A tad different from what you asked for, but better for sorting :-)

-- 
JP


More information about the Filepro-list mailing list