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: incrementin...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 14 of 16 Topic 2179 of 2236
Post > Topic >>

Re: incrementing numbers

by tcdrake <rymills@[EMAIL PROTECTED] > Mar 12, 2008 at 01:23 PM

On Mar 12, 3:04=A0pm, Ted Davis <tda...@[EMAIL PROTECTED]
> wrote:
> On Wed, 12 Mar 2008 12:46:29 -0700, tcdrake wrote:
>
> > I have run across something else I would like. I only need certain
files=

> > unzipped. I know in winzip I can call a list which has all the files I
> > want to unzip. The command for this is wzunzip.exe -e -s
20080307-5.zip
> > @[EMAIL PROTECTED]
 c:\test\105. Any chance you can assist in adding this
feature?=

>
> Replace
> =A0 dir /b *.zip | awk -fscript_file.awk map_file.txt - > }{.cmd
> in the batch file with
> =A0 awk -fscript_file.awk map_file.txt filelist > }{.cmd
>
> All the DIR command did was to generate a list of all the .zip files -
if
> you already have a list of files to process, then that's not needed.
=A0Go=
od
> thing I wrote that script so it didn't care where its input came from.
>
> --
> T.E.D. (tda...@[EMAIL PROTECTED]
)

TED,
Thanks for the quick reply. I didn't make myself clear. You original
script is great and I really do appreciate it. The only change I need
is adding @[EMAIL PROTECTED]
 to the end of each zip file. So the original code
is...

BEGIN{
        UnZipCommand1 =3D "c:\\progra~1\\winzip\\wzunzip.exe -e -s "
        UnZipCommand2 =3D " c:\\test\\"


I need to put in @[EMAIL PROTECTED]
 after the zip name. So somehow getting to
look like this...

BEGIN{
        UnZipCommand1 =3D "c:\\progra~1\\winzip\\wzunzip.exe -e -s
@[EMAIL PROTECTED]
"
        UnZipCommand2 =3D " c:\\test\\"

So the output is 20080311-1.zip @[EMAIL PROTECTED]
 This will allow me to only
unzip the files I need out of the zip. Make sense?




 16 Posts in Topic:
incrementing numbers
tcdrake <rymills@[EMAI  2008-03-06 11:25:29 
Re: incrementing numbers
tcdrake <rymills@[EMAI  2008-03-06 12:44:23 
Re: incrementing numbers
Ted Davis <tdavis@[EMA  2008-03-06 15:47:19 
Re: incrementing numbers
tcdrake <rymills@[EMAI  2008-03-07 06:01:26 
Re: incrementing numbers
tcdrake <rymills@[EMAI  2008-03-07 07:25:05 
Re: incrementing numbers
tcdrake <rymills@[EMAI  2008-03-07 07:32:06 
Re: incrementing numbers
Ted Davis <tdavis@[EMA  2008-03-07 15:04:41 
Re: incrementing numbers
Ted Davis <tdavis@[EMA  2008-03-07 19:58:45 
Re: incrementing numbers
tcdrake <rymills@[EMAI  2008-03-07 07:41:51 
Re: incrementing numbers
tcdrake <rymills@[EMAI  2008-03-07 13:06:05 
Re: incrementing numbers
tcdrake <rymills@[EMAI  2008-03-10 07:22:41 
Re: incrementing numbers
tcdrake <rymills@[EMAI  2008-03-12 12:46:29 
Re: incrementing numbers
Ted Davis <tdavis@[EMA  2008-03-12 15:04:55 
Re: incrementing numbers
tcdrake <rymills@[EMAI  2008-03-12 13:23:37 
Re: incrementing numbers
Ted Davis <tdavis@[EMA  2008-03-12 20:03:31 
Re: incrementing numbers
tcdrake <rymills@[EMAI  2008-03-26 06:48:51 

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 9:24:43 CDT 2008.