Re: date -1 question
- From: Damir Delija <ddelija@xxxxxxxxxxxxxx>
- Date: Thu, 27 Jul 2006 21:21:03 +0200
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>
- References:
- date -1 question
- From: Mark Schlechte
- date -1 question
- Prev by Date: Re: date -1 question
- Next by Date: Tape drive speed stats?
- Previous by thread: Re: date -1 question
- Next by thread: Re: date -1 question
- Index(es):