Search and replace parameter text in Hscript.
OPCHANGE searches and replaces text in parameters.
Date Created:Friday December 29th, 2006 03:41 AM
Date Modified:Wednesday July 30th, 2008 02:07 AM
use -i to match substrings
changes any word cam1 to buffalo under /obj
opchange -p /obj cam1 buffalo
Changes any word cam1 to cam2 in all fields in any node starting with the name mantra:
/ -> opchange -n mantra* cam1 cam2
Changing cam1 to cam2
/out/mantra1
/out/mantra_sel
Changed 2 references
you can also use paths:
/ -> opchange -n mantra* /obj/cam null / -> opchange -n mantra* null /obj/null / -> opchange -n mantra* /obj/null /img/img1
lets say a path was: /obj/model/sphere1, you could:
/ -> opchange -n mantra* obj obj/object_container /obj/model/sphere1 would change to: /obj/object_container/model/sphere1to keep variables from expanding just quote them:
opchange \$RENDER/siggraph \$RPATH
