[SATLUG] Re: D-Link Netcams

Brad Knowles brad at shub-internet.org
Mon May 2 19:10:09 CDT 2011


On May 2, 2011, at 6:58 PM, Geoff Edmonson wrote:

>> outfilename=$prefix-`date +%Y%m%d`.mp3
> 
> That doesn't do anything for the time variable, or does the filename increment with each instance?

You would need to re-evaluate the command each time, but it could easily become something like:

outfilename=$prefix-`date '+%Y%m%dT%H%M%S'`.mp3

That would give you a format like 20110502T190936 for the "date/time stamp" portion of the filename.

--
Brad Knowles <brad at shub-internet.org>
LinkedIn Profile: <http://tinyurl.com/y8kpxu>



More information about the SATLUG mailing list