Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Awk > Re: rename base...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 10 Topic 2205 of 2236
Post > Topic >>

Re: rename based on file name

by Ted Davis <tdavis@[EMAIL PROTECTED] > Mar 26, 2008 at 07:10 PM

On Wed, 26 Mar 2008 18:18:11 -0300, Cesar Rabak wrote:

> 
> The OP can elide all the AWK contortion using an appropriate port of the
> unix utility date for its OS (which I surmise is a variety of Windows
due
> the use of winzip.exe):
> 
> 
> C:\>c:\usr\local\wbin\date.exe
> Wed Mar 26 18:06:59 BST 2008
> 
> C:\>c:\usr\local\wbin\date.exe -d yesterday Tue Mar 25 18:07:07 BST 2008
> 
> C:\>c:\usr\local\wbin\date.exe -d "2 days ago" Mon Mar 24 18:07:13 BST
> 2008
> 
> These dates can be formated as above:
> 
> C:\>c:\usr\local\wbin\date.exe +%Y%m%d 20080326
> 
> C:\>c:\usr\local\wbin\date.exe-d yesterday +%Y%m%d 20080325
> 
> C:\>c:\usr\local\wbin\date.exe -d "2 days ago" +%Y%m%d 20080324
> 

True, but this is an awk group: he is known to have gawk and TAWK, but
is not known to have any of the other highly useful Gnu ports.
(<http://gnuwin32.sourceforge.net/packages.html>)

-- 

T.E.D. (tdavis@[EMAIL PROTECTED]
) MST (Missouri University of Science and
Technology)
used to be UMR (University of Missouri - Rolla).




 10 Posts in Topic:
rename based on file name
tcdrake <rymills@[EMAI  2008-03-26 05:16:13 
Re: rename based on file name
Cesar Rabak <csrabak@[  2008-03-26 11:26:44 
Re: rename based on file name
Ed Morton <morton@[EMA  2008-03-26 10:04:06 
Re: rename based on file name
Ted Davis <tdavis@[EMA  2008-03-26 11:35:42 
Re: rename based on file name
Cesar Rabak <csrabak@[  2008-03-26 18:18:11 
Re: rename based on file name
Ted Davis <tdavis@[EMA  2008-03-26 19:10:01 
Re: rename based on file name
tcdrake <rymills@[EMAI  2008-03-28 08:30:29 
Re: rename based on file name
tcdrake <rymills@[EMAI  2008-03-28 10:08:26 
Re: rename based on file name
Ted Davis <tdavis@[EMA  2008-03-28 15:17:02 
Re: rename based on file name
Cesar Rabak <csrabak@[  2008-03-28 20:40:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 23:07:31 CDT 2008.