On Friday 06 December 2002 01:11 pm, you wrote:
> I need to write a batch script for dos that opens a file in the script and
> replaces a word
>
> for example
>
> The script finds [THIS TEXT] and replaces it with [THAT TEXT]
>
> for the unix and linux boxes I used sed but sed does not exist in dos and
>
> I can not install gnu's windows version on the boxes.. So does anyone know
> of a command that does this
>
> -Jason


My first suggestion would be to use Cygwin, since you can install the standard 
Unix "sed" under Windows that way.  But you say that's not an option.  Not 
sure why, since that's clearly the easiest way to go.

Barring that, maybe you can use Perl or the Java RegEx packages.

Beyond that, I dunno.  Maybe try googling around and see if, by some chance, 
someone wrote a version of "sed" for Java.


HTH,

DR


____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________

Reply via email to