Replaying a word or sentence in a file

(imported topic written by rmustapha91)

I have an xml file that has some value that I will like to replace with a different value. For example

Q: if (exists line whose (it contains “11.33.55.67” AND (it contains “appsistelit”)) of file “C:\image.xml”) then “Audit passed” else “Audit failed”

I will like to replace “appsistelit” with “ADCD” through an action script. Can somebody help out with this?

(imported comment written by jessewk)

Here’s an example:

http://forum.bigfix.com/viewtopic.php?id=2147