#!/bin/sh bxh_eventmerge \ --grabexcludeset 'value[@name="imgName"]' \ --mergeeventpath '//*[local-name()="rois"]/*[local-name()="roi"]' \ 'value[@name="imgName"]' \ '.' \ BEHAVIORAL_run.xml \ my_drawn_ET_ROI.xml ## comments # grabexcludeset ignores any matches # mergeeventpath is the path to the XML nodes from the ROI.xml, the example above represents # # # # 'value[@name="imgName"]' means that i am matching on name="imgName" in both behav and ET_ROI files (INPUTQUERY) # my GRABQUERY is just '.', means grab everything from ET_ROI.xml matches