jimcj1301
12-06-2012, 12:36 AM
I want to know how or what would be the best way to achieve the following.If im not in the correct forum im sorry, I thought Javascript would be the best way.
I work with a large eCommerce company and we have to constantly replace images with new images and then clear the cache using a pre-made template. I'll show a small example of the template it's a *.txt file template that I use for refreshing content on "Akamai edge control"
There is about 100 different lines in the text file each a little different but they all contain to sets of generic variables.
(example excerpt below - using the PHP box to show my sample but its just links)
http://www.mysite.com/file/folder/blah/xxxxxx/_something_else here/zzzzzz/image250
http://www.mysite.com/file/folder/blah/xxxxxx/_something_else here/zzzzzz/image500
http://www.mysite.com/file/folder/blah/xxxxxx/_something_else here/zzzzzz/image800
http://www.mysite.com/file/folder/blah/xxxxxx/_something_else here/zzzzzz/image1000
That is just an example of what it looks like in the text file. The thing we do is open the file with Notepad and press Ctrl+h and the replace box pops up. I put in a number could be i.e. "123456" to replace the xxxxxx but I then have to go back to the number and manually change it to "123000" mind you we are only making changes to the xxxxxx and the zzzzzz. They are just place holders. So my end result would be like this...
Ps. on the zzzzzz it always ends with "000"
http://www.mysite.com/file/folder/blah/123456/_something_else here/123000/image250
http://www.mysite.com/file/folder/blah/123456/_something_else here/123000/image500
http://www.mysite.com/file/folder/blah/123456/_something_else here/123000/image800
http://www.mysite.com/file/folder/blah/123456/_something_else here/123000/image1000
My main question is... is there already some sort of program that can run this process a bit more automatically by just selecting my template file and pasting in my only "123456" and getting all the lines the change while adding the zzzzzz with the zero's also.
I'm trying to eliminate a ton of work and make the process more efficient. My example of "123456" could also be up to "1234567". Maybe even pasting in more then one number separated with commas kind of like "123456,123457,123458" then it runs sample process generating a block of text for each number like it was found and replaced manually.
Ideally I would like to just have a web based form like the image mock up below to perform the task, unless there is another way without installing software on over 1000 computers. Hope this make sense. Thanks in advance for any input.
http://i.stack.imgur.com/6Kc5B.jpg
I work with a large eCommerce company and we have to constantly replace images with new images and then clear the cache using a pre-made template. I'll show a small example of the template it's a *.txt file template that I use for refreshing content on "Akamai edge control"
There is about 100 different lines in the text file each a little different but they all contain to sets of generic variables.
(example excerpt below - using the PHP box to show my sample but its just links)
http://www.mysite.com/file/folder/blah/xxxxxx/_something_else here/zzzzzz/image250
http://www.mysite.com/file/folder/blah/xxxxxx/_something_else here/zzzzzz/image500
http://www.mysite.com/file/folder/blah/xxxxxx/_something_else here/zzzzzz/image800
http://www.mysite.com/file/folder/blah/xxxxxx/_something_else here/zzzzzz/image1000
That is just an example of what it looks like in the text file. The thing we do is open the file with Notepad and press Ctrl+h and the replace box pops up. I put in a number could be i.e. "123456" to replace the xxxxxx but I then have to go back to the number and manually change it to "123000" mind you we are only making changes to the xxxxxx and the zzzzzz. They are just place holders. So my end result would be like this...
Ps. on the zzzzzz it always ends with "000"
http://www.mysite.com/file/folder/blah/123456/_something_else here/123000/image250
http://www.mysite.com/file/folder/blah/123456/_something_else here/123000/image500
http://www.mysite.com/file/folder/blah/123456/_something_else here/123000/image800
http://www.mysite.com/file/folder/blah/123456/_something_else here/123000/image1000
My main question is... is there already some sort of program that can run this process a bit more automatically by just selecting my template file and pasting in my only "123456" and getting all the lines the change while adding the zzzzzz with the zero's also.
I'm trying to eliminate a ton of work and make the process more efficient. My example of "123456" could also be up to "1234567". Maybe even pasting in more then one number separated with commas kind of like "123456,123457,123458" then it runs sample process generating a block of text for each number like it was found and replaced manually.
Ideally I would like to just have a web based form like the image mock up below to perform the task, unless there is another way without installing software on over 1000 computers. Hope this make sense. Thanks in advance for any input.
http://i.stack.imgur.com/6Kc5B.jpg