Re: date -1 question
- From: "Ryan H. Madison" <rmadison@xxxxxxxxxxx>
- Date: Thu, 27 Jul 2006 09:54:21 -0700
Gnu date has a rich method of reporting dates. It's in the coreutils
package in the IBM AIX Toolbox:
http://www-03.ibm.com/servers/aix/products/aixos/linux/date.html. You
also get the added benefit of several other useful binaries.
/opt/freeware/bin/date --date="yesterday"
Wed Jul 26 09:50:34 PDT 2006
/opt/freeware/bin/date
Thu Jul 27 09:50:36 PDT 2006
________________________________
From: IBM AIX Discussion List [mailto:aix-l@xxxxxxxxxxxxx] On Behalf Of
Mark Schlechte
Sent: Thursday, July 27, 2006 9:16 AM
To: aix-l@xxxxxxxxxxxxx
Subject: date -1 question
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
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.
- Follow-Ups:
- Re: date -1 question
- From: Patrick B. O'Brien
- Re: date -1 question
- References:
- date -1 question
- From: Mark Schlechte
- date -1 question
- Prev by Date: Re: date -1 question
- Next by Date: Re: date -1 question
- Previous by thread: date -1 question
- Next by thread: Re: date -1 question
- Index(es):