Using Workbench Command

Workbench Command is a set of command-line tools that can be used to perform simple and complex operations within Connectome Workbench.

Full Documentation:

Documentation Home
ADD OR REMOVE FILES FROM SPEC FILE
   wb_command -spec-file-modify
      <spec-file> - the spec file to modify

      [-add] - repeatable - add a file to the spec
         <structure> - the structure of the data file
         <file> - the file to add

      [-remove] - repeatable - remove a file from the spec file
         <filename> - the filename to remove

         [-recursive] - remove all files that match the string starting from
            any folder

         [-suffix] - match any file that ends with the given string (if there
            are multiple matches, error unless -recursive was also specified)

      The input spec file is overwritten with the new version.  If the spec
      file does not exist, it is created with default metadata.

      Removals are done before additions, so that you can remove files with a
      pattern, and then add new files even if they match that removal pattern.

      The <structure> argument of -add must match one of the following strings
      (you can use INVALID for cifti or volume files):CORTEX_LEFT
      CORTEX_RIGHT
      CEREBELLUM
      ACCUMBENS_LEFT
      ACCUMBENS_RIGHT
      ALL_GREY_MATTER
      ALL_WHITE_MATTER
      AMYGDALA_LEFT
      AMYGDALA_RIGHT
      BRAIN_STEM
      CAUDATE_LEFT
      CAUDATE_RIGHT
      CEREBELLAR_WHITE_MATTER_LEFT
      CEREBELLAR_WHITE_MATTER_RIGHT
      CEREBELLUM_LEFT
      CEREBELLUM_RIGHT
      CEREBRAL_WHITE_MATTER_LEFT
      CEREBRAL_WHITE_MATTER_RIGHT
      CORTEX
      DIENCEPHALON_VENTRAL_LEFT
      DIENCEPHALON_VENTRAL_RIGHT
      HIPPOCAMPUS_LEFT
      HIPPOCAMPUS_RIGHT
      HIPPOCAMPUS_DENTATE_LEFT
      HIPPOCAMPUS_DENTATE_RIGHT
      INVALID
      OTHER
      OTHER_GREY_MATTER
      OTHER_WHITE_MATTER
      PALLIDUM_LEFT
      PALLIDUM_RIGHT
      PUTAMEN_LEFT
      PUTAMEN_RIGHT
      THALAMUS_LEFT
      THALAMUS_RIGHT