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 10 of 10 Topic 2205 of 2236
Post > Topic >>

Re: rename based on file name

by Cesar Rabak <csrabak@[EMAIL PROTECTED] > Mar 28, 2008 at 08:40 PM

tcdrake escreveu:
[snipped]

> 
> Well started over and simplified the code with everyone's assistance.
> I set it to unzip to a working directory, rename files, zip and move
> to the correct directory based on the location code. Then process the
> next zip. Here is it for everyone to see.

Great.
> 
> BEGIN{
> 
> while ( (getline < "stores.txt")  > 0)
[snipped]
Now, why do you use this construct intead of using the contents of the 
script within the body of the while and call the script as:

C:\>awk -f script.awk stores.txt

HTH

--
Cesar Rabak




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