Re: date -1 question



On Thu, Jul 27, 2006 at 10:15:34AM -0600, Mark Schlechte wrote:

I'm using smbclient in a script to get a file from a windows server share.
The format of the file is filenamemmddyy.txt so I'm using get filename`date '+%m%d%y'`.txt but my problem is the file I want to get was created yesterday.

So I'm wondering how get yesterdays file based on ctime or somehow 'date -1' etc.?

Mark

Hi Mark

there are few tips in shell or in perl
look at www.shelldorado.com for shell methods
actually it change timezone offset to calculate date representation

hope this helps






<html><body><font face = "arial" size = "1">
DISCLAIMER: The information transmitted is intended only
for the addressee and may contain confidential,
proprietary and/or privileged material. Any
unauthorized review, distribution or other use
of or the taking of any action in reliance upon
this information is prohibited. If you received
this in error, please contact the sender and
delete or destroy this message and any copies.
</font><body></html>