|
View:
New views
12 Messages
—
Rating Filter:
Alert me
|
|
|
Find and Replace in FilesI have a directory full of all type of files (mostly .htm .html .asp
.aspx maybe some .inc and .js) I need to walk through the directory and any sub directories checking for a URL existence in the files and change it to another URL. This is way beyond my scripting skills, any help would be appreciated. Most will be UNC paths to http paths or changing the path within the line. Example Change this HTML = HTML & "<A HREF=""file://dles273/audit/audit-edit-record-osort.asp?ID="&BigRST("doa ud_ID")&""">Click here to go to closure page for this record.</A>" HTML = HTML & "<A HREF=""http://fserv.sc.ti.com/audit/audit-edit-record-osort.asp?ID="&Big RST("doaud_ID")&""">Click here to go to closure page for this record.</A>" to this http://fserv.sc.ti.com/audit/audit-edit-record-osort.asp to Regards Lamar Morris Texas Instruments - IT Operations - Windows Server Team * <mailto:LamarMorris@...> email: LamarMorris@... - *office: 214-567-7169 * <mailto:searun@...> team email: wst@... - *mobile: 214-882-4187 *web: <http://wst.itg.ti.com/> http://wst.itg.ti.com/ <http://wst.itg.ti.com/> [Non-text portions of this message have been removed] |
|
|
Re: Find and Replace in FilesOn Fri, 6 Jun 2008 09:18:58 -0500, "Morris, Lamar" <LamarMorris@...> wrote:
>I have a directory full of all type of files (mostly .htm .html .asp >.aspx maybe some .inc and .js) I need to walk through the directory and >any sub directories checking for a URL existence in the files and change >it to another URL. This is way beyond my scripting skills, any help >would be appreciated. > > > >Most will be UNC paths to http paths or changing the path within the >line. > > > >Example > >Change this > >HTML = HTML & "<A >HREF=""file://dles273/audit/audit-edit-record-osort.asp?ID="&BigRST("doa >ud_ID")&""">Click here to go to closure page > > for this record.</A>" > > > > > > HTML = HTML & "<A >HREF=""http://fserv.sc.ti.com/audit/audit-edit-record-osort.asp?ID="&Big >RST("doaud_ID")&""">Click here to go to closure page for this >record.</A>" > > > >to this http://fserv.sc.ti.com/audit/audit-edit-record-osort.asp to I've tested this in a simple fashion Lamar. Both URLs must have the / characters escaped as below for use by GNU SED file:\/\/dles273\/audit\/audit-edit-record-osort.asp http:\/\/fserv.sc.ti.com\/audit\/audit-edit-record-osort.asp/ A problem might occur if a binary file exists with the URL inside it, as it will obviously corrupt the binary/exe file. The long line started with "sed" between blank lines might have wrapped. @echo off setlocal for /f "delims=" %%a in ('dir /a:-d /o:n /b /s') do ( del temp.file 2>nul sed "s/file:\/\/dles273\/audit\/audit-edit-record-osort.asp/http:\/\/fserv.sc.ti.com\/audit\/audit-edit-record-osort.asp/" "%%a" >temp.file if exist temp.file move temp.file "%%a" >nul echo found URL in "%%a" >>file.log ) |
|
|
Re: Find and Replace in FilesOn Fri, 6 Jun 2008 09:18:58 -0500, "Morris, Lamar" <LamarMorris@...> wrote:
>I have a directory full of all type of files (mostly .htm .html .asp >.aspx maybe some .inc and .js) I need to walk through the directory and >any sub directories checking for a URL existence in the files and change >it to another URL. This is way beyond my scripting skills, any help >would be appreciated. This version tests the files and only updates the ones that need updating and fixes the log file behaviour. Also Lamar - SED will convert the HTML or Unix files with only Line Feed characters at the end to the MSDOS style with Carriage Return/Line Feed pairs. @echo off setlocal for /f "delims=" %%a in ('dir /a:-d /o:n /b /s') do ( del temp.file 2>nul sed "s/file:\/\/dles273\/audit\/audit-edit-record-osort.asp/http:\/\/fserv.sc.ti.com\/audit\/audit-edit-record-osort.asp/" "%%a" >temp.file fc /b temp.file "%%a">nul||( move temp.file "%%a" >nul echo found URL in "%%a" >>file.log ) ) del temp.file 2>nul |
|
|
RE: Find and Replace in FilesThanks Mic, I can always count on you. One question, I probably gave you
too much information. I would only need to find file://dles273 and replace it with http://fserv.itg.ti.com My question is will this do that. @echo off setlocal for /f "delims=" %%a in ('dir /a:-d /o:n /b /s') do ( del temp.file 2>nul sed "s/file:\/\/dles273\//http:\/\/fserv.sc.ti.com\/" "%%a" >temp.file fc /b temp.file "%%a">nul||( move temp.file "%%a" >nul echo found URL in "%%a" >>file.log ) ) del temp.file 2>nul Lamar ________________________________ From: batchworld@... [mailto:batchworld@...] On Behalf Of foxidrive Sent: Friday, June 06, 2008 10:27 AM To: batchworld@... Subject: Re: [BATCH WORLD] Find and Replace in Files On Fri, 6 Jun 2008 09:18:58 -0500, "Morris, Lamar" <LamarMorris@... <mailto:LamarMorris%40ti.com> > wrote: >I have a directory full of all type of files (mostly .htm .html .asp >.aspx maybe some .inc and .js) I need to walk through the directory and >any sub directories checking for a URL existence in the files and change >it to another URL. This is way beyond my scripting skills, any help >would be appreciated. This version tests the files and only updates the ones that need updating and fixes the log file behaviour. Also Lamar - SED will convert the HTML or Unix files with only Line Feed characters at the end to the MSDOS style with Carriage Return/Line Feed pairs. @echo off setlocal for /f "delims=" %%a in ('dir /a:-d /o:n /b /s') do ( del temp.file 2>nul sed "s/file:\/\/dles273\/audit\/audit-edit-record-osort.asp/http:\/\/fserv.s c.ti.com\/audit\/audit-edit-record-osort.asp/" "%%a" >temp.file fc /b temp.file "%%a">nul||( move temp.file "%%a" >nul echo found URL in "%%a" >>file.log ) ) del temp.file 2>nul [Non-text portions of this message have been removed] |
|
|
Re: Find and Replace in FilesOn Fri, 6 Jun 2008 11:16:09 -0500, "Morris, Lamar" <LamarMorris@...> wrote:
>Thanks Mic, I can always count on you. One question, I probably gave you >too much information. > >I would only need to find file://dles273 and replace it with >http://fserv.itg.ti.com > >My question is will this do that. Sorry, have been elsewhere. Yes it will - it will also find myfile://dles273 so just be aware that if the string is in some other place then it will be changed too. >@echo off >setlocal >for /f "delims=" %%a in ('dir /a:-d /o:n /b /s') do ( >del temp.file 2>nul >sed "s/file:\/\/dles273\//http:\/\/fserv.sc.ti.com\/" "%%a" >temp.file >fc /b temp.file "%%a">nul||( >move temp.file "%%a" >nul >echo found URL in "%%a" >>file.log >) >) >del temp.file 2>nul > |
|
|
Re: Find and Replace in FilesOn Fri, 6 Jun 2008 11:16:09 -0500, "Morris, Lamar" <LamarMorris@...> wrote:
>Thanks Mic, I can always count on you. One question, I probably gave you >too much information. > >I would only need to find file://dles273 and replace it with >http://fserv.itg.ti.com > >My question is will this do that. Oops. There were some errors Lamar. This will replace file://dles273/ with http://fserv.itg.ti.com/ sed "s/file:\/\/dles273\//http:\/\/fserv.itg.ti.com\//" "%%a" >temp.file This will replace file://dles273 with http://fserv.itg.ti.com sed "s/file:\/\/dles273/http:\/\/fserv.itg.ti.com/" "%%a" >temp.file |
|
|
RE: Find and Replace in FilesThanks Mic.
BTW does anyone have a script that will enumerate the users connected to a share. Lamar ________________________________ From: batchworld@... [mailto:batchworld@...] On Behalf Of foxidrive Sent: Friday, June 06, 2008 12:57 PM To: batchworld@... Subject: Re: [BATCH WORLD] Find and Replace in Files On Fri, 6 Jun 2008 11:16:09 -0500, "Morris, Lamar" <LamarMorris@... <mailto:LamarMorris%40ti.com> > wrote: >Thanks Mic, I can always count on you. One question, I probably gave you >too much information. > >I would only need to find file://dles273 <file:///\\dles273> and replace it with >http://fserv.itg.ti.com <http://fserv.itg.ti.com> > >My question is will this do that. Oops. There were some errors Lamar. This will replace file://dles273/ <file:///\\dles273\> with http://fserv.itg.ti.com/ <http://fserv.itg.ti.com/> sed "s/file:\/\/dles273\//http:\/\/fserv.itg.ti.com\//" "%%a" >temp.file This will replace file://dles273 <file:///\\dles273> with http://fserv.itg.ti.com <http://fserv.itg.ti.com> sed "s/file:\/\/dles273/http:\/\/fserv.itg.ti.com/" "%%a" >temp.file [Non-text portions of this message have been removed] |
|
|
RE: Find and Replace in FilesHey Mic, the script has an issue, it's throwing an error and zeroing out
all files. Any ideas. w:/lamar/sed.exe: -e expression #1, char 47: Unterminated `s' command sed "s/file:\/\/dles273\//http:\/\/fserv.sc.ti.com\/" "%%a" >temp.file ________________________________ From: batchworld@... [mailto:batchworld@...] On Behalf Of foxidrive Sent: Friday, June 06, 2008 12:57 PM To: batchworld@... Subject: Re: [BATCH WORLD] Find and Replace in Files On Fri, 6 Jun 2008 11:16:09 -0500, "Morris, Lamar" <LamarMorris@... <mailto:LamarMorris%40ti.com> > wrote: >Thanks Mic, I can always count on you. One question, I probably gave you >too much information. > >I would only need to find file://dles273 <file:///\\dles273> and replace it with >http://fserv.itg.ti.com <http://fserv.itg.ti.com> > >My question is will this do that. Oops. There were some errors Lamar. This will replace file://dles273/ <file:///\\dles273\> with http://fserv.itg.ti.com/ <http://fserv.itg.ti.com/> sed "s/file:\/\/dles273\//http:\/\/fserv.itg.ti.com\//" "%%a" >temp.file This will replace file://dles273 <file:///\\dles273> with http://fserv.itg.ti.com <http://fserv.itg.ti.com> sed "s/file:\/\/dles273/http:\/\/fserv.itg.ti.com/" "%%a" >temp.file [Non-text portions of this message have been removed] |
|
|
Re: Find and Replace in FilesOn Fri, 6 Jun 2008 14:03:32 -0500, "Morris, Lamar" <LamarMorris@...>
wrote: >Hey Mic, the script has an issue, it's throwing an error and zeroing out >all files. Any ideas. > > > >w:/lamar/sed.exe: -e expression #1, char 47: Unterminated `s' command > > > sed "s/file:\/\/dles273\//http:\/\/fserv.sc.ti.com\/" "%%a" >temp.file You were missing the trailing / sed "s/file:\/\/dles273\//http:\/\/fserv.sc.ti.com\//" "%%a" >temp.file >________________________________ > >From: batchworld@... [mailto:batchworld@...] On >Behalf Of foxidrive >Sent: Friday, June 06, 2008 12:57 PM >To: batchworld@... >Subject: Re: [BATCH WORLD] Find and Replace in Files > > > >On Fri, 6 Jun 2008 11:16:09 -0500, "Morris, Lamar" <LamarMorris@... ><mailto:LamarMorris%40ti.com> > wrote: > >>Thanks Mic, I can always count on you. One question, I probably gave >you >>too much information. >> >>I would only need to find file://dles273 <file:///\\dles273> and >replace it with >>http://fserv.itg.ti.com <http://fserv.itg.ti.com> >> >>My question is will this do that. > >Oops. There were some errors Lamar. > >This will replace file://dles273/ <file:///\\dles273\> with >http://fserv.itg.ti.com/ <http://fserv.itg.ti.com/> > >sed "s/file:\/\/dles273\//http:\/\/fserv.itg.ti.com\//" "%%a" >temp.file > >This will replace file://dles273 <file:///\\dles273> with >http://fserv.itg.ti.com <http://fserv.itg.ti.com> > >sed "s/file:\/\/dles273/http:\/\/fserv.itg.ti.com/" "%%a" >temp.file > > > > > >[Non-text portions of this message have been removed] > > >------------------------------------ > >To Post a message, send it to: batchworld@... > >To Unsubscribe, send a blank message to: batchworld-unsubscribe@...! Groups Links > > > |
|
|
RE: Find and Replace in FilesThanks.
Lamar ________________________________ From: batchworld@... [mailto:batchworld@...] On Behalf Of foxidrive Sent: Friday, June 06, 2008 3:22 PM To: batchworld@... Subject: Re: [BATCH WORLD] Find and Replace in Files On Fri, 6 Jun 2008 14:03:32 -0500, "Morris, Lamar" <LamarMorris@... <mailto:LamarMorris%40ti.com> > wrote: >Hey Mic, the script has an issue, it's throwing an error and zeroing out >all files. Any ideas. > > > >w:/lamar/sed.exe: -e expression #1, char 47: Unterminated `s' command > > > sed "s/file:\/\/dles273\//http:\/\/fserv.sc.ti.com\/" "%%a" >temp.file You were missing the trailing / sed "s/file:\/\/dles273\//http:\/\/fserv.sc.ti.com\//" "%%a" >temp.file >________________________________ > >From: batchworld@... <mailto:batchworld%40yahoogroups.com> [mailto:batchworld@... <mailto:batchworld%40yahoogroups.com> ] On >Behalf Of foxidrive >Sent: Friday, June 06, 2008 12:57 PM >To: batchworld@... <mailto:batchworld%40yahoogroups.com> >Subject: Re: [BATCH WORLD] Find and Replace in Files > > > >On Fri, 6 Jun 2008 11:16:09 -0500, "Morris, Lamar" <LamarMorris@... <mailto:LamarMorris%40ti.com> ><mailto:LamarMorris%40ti.com> > wrote: > >>Thanks Mic, I can always count on you. One question, I probably gave >you >>too much information. >> >>I would only need to find file://dles273 <file:///\\dles273> <file:/// <file:///\\> \\dles273> and >replace it with >>http://fserv.itg.ti.com <http://fserv.itg.ti.com> <http://fserv.itg.ti.com <http://fserv.itg.ti.com> > >> >>My question is will this do that. > >Oops. There were some errors Lamar. > >This will replace file://dles273/ <file:///\\dles273\> <file:/// <file:///\\> \\dles273\> with >http://fserv.itg.ti.com/ <http://fserv.itg.ti.com/> <http://fserv.itg.ti.com/ <http://fserv.itg.ti.com/> > > >sed "s/file:\/\/dles273\//http:\/\/fserv.itg.ti.com\//" "%%a" >temp.file > >This will replace file://dles273 <file:///\\dles273> <file:/// <file:///\\> \\dles273> with >http://fserv.itg.ti.com <http://fserv.itg.ti.com> <http://fserv.itg.ti.com <http://fserv.itg.ti.com> > > >sed "s/file:\/\/dles273/http:\/\/fserv.itg.ti.com/" "%%a" >temp.file > > > > > >[Non-text portions of this message have been removed] > > >------------------------------------ > >To Post a message, send it to: batchworld@... > >To Unsubscribe, send a blank message to: batchworld-unsubscribe@... <mailto:batchworld-unsubscribe%40eGroups.comYahoo> ! Groups Links > > > [Non-text portions of this message have been removed] |
|
|
Re: Find and Replace in FilesHello.
Sorry if this sounds a little out of context...but there is a copy task for the ant tool. http://ant.apache.org/manual/CoreTasks/copy.html It supports replacing something inside all files in the specified folder. As Mic already stated, one might need to be careful about binaries...and ant can be told not to replace in a particular set of extensions. [I am not sure if it might modify the CR LF.] About the other question, enumerating list of users connected to a share, I like to use "net file" on the system where the folder has been shared from. Thanks, Parag P. Doke On Sat, Jun 7, 2008 at 8:47 AM, Morris, Lamar <LamarMorris@...> wrote: > Thanks. > > Lamar > > > ________________________________ > > From: batchworld@... <batchworld%40yahoogroups.com> [mailto: > batchworld@... <batchworld%40yahoogroups.com>] On > Behalf Of foxidrive > Sent: Friday, June 06, 2008 3:22 PM > To: batchworld@... <batchworld%40yahoogroups.com> > Subject: Re: [BATCH WORLD] Find and Replace in Files > > On Fri, 6 Jun 2008 14:03:32 -0500, "Morris, Lamar" <LamarMorris@...<LamarMorris%40ti.com> > <mailto:LamarMorris%40ti.com <LamarMorris%2540ti.com>> > > wrote: > > >Hey Mic, the script has an issue, it's throwing an error and zeroing > out > >all files. Any ideas. > > > > > > > >w:/lamar/sed.exe: -e expression #1, char 47: Unterminated `s' command > > > > > > sed "s/file:\/\/dles273\//http:\/\/fserv.sc.ti.com\/" "%%a" >temp.file > > You were missing the trailing / > > sed "s/file:\/\/dles273\//http:\/\/fserv.sc.ti.com\//" "%%a" >temp.file > > >________________________________ > > > >From: batchworld@... <batchworld%40yahoogroups.com> <mailto: > batchworld%40yahoogroups.com <batchworld%2540yahoogroups.com>> > [mailto:batchworld@... <batchworld%40yahoogroups.com> <mailto: > batchworld%40yahoogroups.com <batchworld%2540yahoogroups.com>> > ] On > >Behalf Of foxidrive > >Sent: Friday, June 06, 2008 12:57 PM > >To: batchworld@... <batchworld%40yahoogroups.com> <mailto: > batchworld%40yahoogroups.com <batchworld%2540yahoogroups.com>> > >Subject: Re: [BATCH WORLD] Find and Replace in Files > > > > > > > >On Fri, 6 Jun 2008 11:16:09 -0500, "Morris, Lamar" <LamarMorris@...<LamarMorris%40ti.com> > <mailto:LamarMorris%40ti.com <LamarMorris%2540ti.com>> > ><mailto:LamarMorris%40ti.com <LamarMorris%2540ti.com>> > wrote: > > > >>Thanks Mic, I can always count on you. One question, I probably gave > >you > >>too much information. > >> > >>I would only need to find file://dles273 <file:///\\dles273> > <file:/// <file:///\\> \\dles273> and > >replace it with > >>http://fserv.itg.ti.com <http://fserv.itg.ti.com> > <http://fserv.itg.ti.com <http://fserv.itg.ti.com> > > >> > >>My question is will this do that. > > > >Oops. There were some errors Lamar. > > > >This will replace file://dles273/ <file:///\\dles273\> <file:/// > <file:///\\> \\dles273\> with > >http://fserv.itg.ti.com/ <http://fserv.itg.ti.com/> > <http://fserv.itg.ti.com/ <http://fserv.itg.ti.com/> > > > > >sed "s/file:\/\/dles273\//http:\/\/fserv.itg.ti.com\//" "%%a" > >temp.file > > > >This will replace file://dles273 <file:///\\dles273> <file:/// > <file:///\\> \\dles273> with > >http://fserv.itg.ti.com <http://fserv.itg.ti.com> > <http://fserv.itg.ti.com <http://fserv.itg.ti.com> > > > > >sed "s/file:\/\/dles273/http:\/\/fserv.itg.ti.com/" "%%a" >temp.file > > > > > > > > > > > >[Non-text portions of this message have been removed] > > > > > >------------------------------------ > > > >To Post a message, send it to: batchworld@...<batchworld%40eGroups.com> > <mailto:batchworld%40eGroups.com <batchworld%2540eGroups.com>> > > > >To Unsubscribe, send a blank message to: > batchworld-unsubscribe@...<batchworld-unsubscribe%40eGroups.comYahoo> > <mailto:batchworld-unsubscribe%40eGroups.comYahoo<batchworld-unsubscribe%2540eGroups.comYahoo>> > ! Groups Links > > > > > > > > [Non-text portions of this message have been removed] > > > -- Parag P. Doke http://paragpdoke.blogspot.com [Non-text portions of this message have been removed] |
|
|
RE: Find and Replace in FilesThanks.
Lamar ________________________________ From: batchworld@... [mailto:batchworld@...] On Behalf Of Parag P. Doke Sent: Saturday, June 07, 2008 12:56 AM To: batchworld@... Subject: Re: [BATCH WORLD] Find and Replace in Files Hello. Sorry if this sounds a little out of context...but there is a copy task for the ant tool. http://ant.apache.org/manual/CoreTasks/copy.html <http://ant.apache.org/manual/CoreTasks/copy.html> It supports replacing something inside all files in the specified folder. As Mic already stated, one might need to be careful about binaries...and ant can be told not to replace in a particular set of extensions. [I am not sure if it might modify the CR LF.] About the other question, enumerating list of users connected to a share, I like to use "net file" on the system where the folder has been shared from. Thanks, Parag P. Doke On Sat, Jun 7, 2008 at 8:47 AM, Morris, Lamar <LamarMorris@... <mailto:LamarMorris%40ti.com> > wrote: > Thanks. > > Lamar > > > ________________________________ > > From: batchworld@... <mailto:batchworld%40yahoogroups.com> <batchworld%40yahoogroups.com> [mailto: > batchworld@... <mailto:batchworld%40yahoogroups.com> <batchworld%40yahoogroups.com>] On > Behalf Of foxidrive > Sent: Friday, June 06, 2008 3:22 PM > To: batchworld@... <mailto:batchworld%40yahoogroups.com> <batchworld%40yahoogroups.com> > Subject: Re: [BATCH WORLD] Find and Replace in Files > > On Fri, 6 Jun 2008 14:03:32 -0500, "Morris, Lamar" <LamarMorris@... <mailto:LamarMorris%40ti.com> <LamarMorris%40ti.com> > <mailto:LamarMorris%40ti.com <LamarMorris%2540ti.com>> > > wrote: > > >Hey Mic, the script has an issue, it's throwing an error and zeroing > out > >all files. Any ideas. > > > > > > > >w:/lamar/sed.exe: -e expression #1, char 47: Unterminated `s' command > > > > > > sed "s/file:\/\/dles273\//http:\/\/fserv.sc.ti.com\/" "%%a" >temp.file > > You were missing the trailing / > > sed "s/file:\/\/dles273\//http:\/\/fserv.sc.ti.com\//" "%%a" >temp.file > > >________________________________ > > > >From: batchworld@... <mailto: > batchworld%40yahoogroups.com <batchworld%2540yahoogroups.com>> > [mailto:batchworld@... <mailto:batchworld%40yahoogroups.com> <batchworld%40yahoogroups.com> <mailto: > batchworld%40yahoogroups.com <batchworld%2540yahoogroups.com>> > ] On > >Behalf Of foxidrive > >Sent: Friday, June 06, 2008 12:57 PM > >To: batchworld@... <mailto:batchworld%40yahoogroups.com> <batchworld%40yahoogroups.com> <mailto: > batchworld%40yahoogroups.com <batchworld%2540yahoogroups.com>> > >Subject: Re: [BATCH WORLD] Find and Replace in Files > > > > > > > >On Fri, 6 Jun 2008 11:16:09 -0500, "Morris, Lamar" <LamarMorris@... <mailto:LamarMorris%40ti.com> <LamarMorris%40ti.com> > <mailto:LamarMorris%40ti.com <LamarMorris%2540ti.com>> > ><mailto:LamarMorris%40ti.com <LamarMorris%2540ti.com>> > wrote: > > > >>Thanks Mic, I can always count on you. One question, I probably gave > >you > >>too much information. > >> > >>I would only need to find file://dles273 <file:///\\dles273> <file:/// <file:///\\> \\dles273> > <file:/// <file:///\\> <file:/// <file:///\\> \\> \\dles273> and > >replace it with > >>http://fserv.itg.ti.com <http://fserv.itg.ti.com> <http://fserv.itg.ti.com <http://fserv.itg.ti.com> > > <http://fserv.itg.ti.com <http://fserv.itg.ti.com> <http://fserv.itg.ti.com <http://fserv.itg.ti.com> > > > >> > >>My question is will this do that. > > > >Oops. There were some errors Lamar. > > > >This will replace file://dles273/ <file:///\\dles273\> <file:/// <file:///\\> \\dles273\> <file:/// <file:///\\> > <file:/// <file:///\\> \\> \\dles273\> with > >http://fserv.itg.ti.com/ <http://fserv.itg.ti.com/> <http://fserv.itg.ti.com/ <http://fserv.itg.ti.com/> > > <http://fserv.itg.ti.com/ <http://fserv.itg.ti.com/> <http://fserv.itg.ti.com/ <http://fserv.itg.ti.com/> > > > > > >sed "s/file:\/\/dles273\//http:\/\/fserv.itg.ti.com\//" "%%a" > >temp.file > > > >This will replace file://dles273 <file:///\\dles273> <file:/// <file:///\\> \\dles273> <file:/// <file:///\\> > <file:/// <file:///\\> \\> \\dles273> with > >http://fserv.itg.ti.com <http://fserv.itg.ti.com> <http://fserv.itg.ti.com <http://fserv.itg.ti.com> > > <http://fserv.itg.ti.com <http://fserv.itg.ti.com> <http://fserv.itg.ti.com <http://fserv.itg.ti.com> > > > > > >sed "s/file:\/\/dles273/http:\/\/fserv.itg.ti.com/" "%%a" >temp.file > > > > > > > > > > > >[Non-text portions of this message have been removed] > > > > > >------------------------------------ > > > >To Post a message, send it to: batchworld@... > <mailto:batchworld%40eGroups.com <batchworld%2540eGroups.com>> > > > >To Unsubscribe, send a blank message to: > batchworld-unsubscribe@... <mailto:batchworld-unsubscribe%40eGroups.comYahoo> <batchworld-unsubscribe%40eGroups.comYahoo> > <mailto:batchworld-unsubscribe%40eGroups.comYahoo<batchworld-unsubscribe %2540eGroups.comYahoo>> > ! Groups Links > > > > > > > > [Non-text portions of this message have been removed] > > > -- Parag P. Doke http://paragpdoke.blogspot.com <http://paragpdoke.blogspot.com> [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] |
| Free Forum Powered by Nabble | Forum Help |