#!/bin/sh # Get the voxel count for a mask fslstats mask -V | awk '{printf $1 " "}' # Get the volume in cubic mm for a mask fslstats mask -V | awk '{printf $2 " "}'