----- Original Message ----- 
From: Terry Collins <[EMAIL PROTECTED]>
To: Slug <[EMAIL PROTECTED]>
Sent: Monday, December 11, 2000 6:27 PM
Subject: [SLUG] Including date into filename as shell use


> I want to use cron to periodically copy a file "webcam3.jpeg" to a
> filename based on the current day and time, but I'm unable to workout
> how to do this as a bash shell command.
> It will be something like
> 
> cp webcam3.jpeg  sproutcam + date '+%m%d%H%M' + .jpeg

more like:

cp webcam3.jpeg sproutcam`date '+%m%d%H%M'`.jpg

+-================================================-+
| Crossfire      | This message was brought to you |
| [EMAIL PROTECTED] | on 100% recycled electrons      |
+-================================================-+




-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to