#!/bin/sh # Multiply image by mask to extract just those voxels # from image that are in the mask (see also -mas): fslmaths img -mul mask img_in_mask