1.

Solve : batch file to modify text file?

Answer»

ok here is my problem, IM trying to create a batch file to run from windows that will look in a text file that is a sun system and be able to replace a string in there. im using the FOLLOWING command
rsh hq-cfgsun3 cat opt/SUNWa*/domains/domain1/config/domain.xml | sed -e 's/512m/1024m/g'> opt/SUNWa*/domains/domain1/config/domain1.xml

but when it gets to the sed part looks like it goes back to REGULAR command prompt and gives me an error that sed is not recognized as an internal or EXTERNAL command.
help pleaseHave you tried including the full path for sed???

Just a thought!!!



Discussion

No Comment Found