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 15 of 16 Topic 2179 of 2236
Post > Topic >>

Re: incrementing numbers

by Ted Davis <tdavis@[EMAIL PROTECTED] > Mar 12, 2008 at 08:03 PM

On Wed, 12 Mar 2008 13:23:37 -0700, tcdrake wrote:

> On Mar 12, 3:04 pm, 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
>>   dir /b *.zip | awk -fscript_file.awk map_file.txt - > }{.cmd in the
>> batch file with
>>   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.
>>  Good 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 = "c:\\progra~1\\winzip\\wzunzip.exe -e -s "
>         UnZipCommand2 = " c:\\test\\"
> 
> 
> I need to put in @[EMAIL PROTECTED]
 after the zip name. So somehow getting to
look
> like this...
> 
> BEGIN{
>         UnZipCommand1 = "c:\\progra~1\\winzip\\wzunzip.exe -e -s
> @[EMAIL PROTECTED]
"
>         UnZipCommand2 = " 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?

The only think that can be unzipped is a zip archive - you want to extract
individual files based on a list.

Change 

  UnZipCommand2	= " c:\\test\\"

in the script to

  UnZipCommand2	= " @[EMAIL PROTECTED]
 c:\\test\\"

-- 

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




 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:25:40 CDT 2008.