[lug] scripting on linux to replace "find and replace"

John Starkey jstarkey at advancecreations.com
Tue Sep 26 11:22:33 MDT 2000


Thanks Michael. Someone sent me an offline message offering to help but if
you'd still have the time I'd love to hear your method also.

1) Create 70 files each containing <head><body><img src="img001.gif">
	So I created slide001.html and now I'm trying to copy that 69
	times incrementing the img src file name ++.

2) I just recieved the clients breakdown of the files. So I have no clue.
	It's .doc so I have to do a conversion to find out. 

This is great. Wait til I tell the guys at work, hehehehe <evil grin>.

Thanks,

John


On Tue, 26 Sep 2000, Michael J. Pedersen wrote:

> On Tue, Sep 26, 2000 at 10:50:06AM -0600, John Starkey wrote:
> > 1) I need to create 70 files, all identical except for 2 numbers in the
> > <img> tag. These two numbers need to increment relative to the file name
> > (file1 -> <img src="001">; file2 -> <img src="002>) ( a slide show ).
> > 
> > 2) When the client sends the layout I'll need to break these 70 files down
> > into groups and rename both the files and images (140 files at this
> > point). I could probably work this without changing the names.
> > 
> > 3) Certain files will need navigation buttons. So I'll need to specify
> > which file and where in the file to place these buttons. 
> 
> This can be done almost trivially in perl, and that's prolly how it should be
> done. However, I don't have enough details. Could email me the exact steps to
> take? ie: What's your algorithm for doing all of this?
> 
> -- 
> Michael J. Pedersen
> My GnuPG KeyID: 4E724A60        My Public Key Available At: wwwkeys.pgp.net
> My GnuPG Key Fingerprint: C31C 7E90 5992 9E5E 9A02 233D D8DD 985E 4E72 4A60
> GnuPG available at http://www.gnupg.org
> 





More information about the LUG mailing list