tckresample problem with Unix pipeline

Hi, I want to generate a binary mask of some fiber bundles, but first, I want to resample the bundle to 128 points. However, I encounter an error when attempting to use a Unix pipeline.

Seems like this particular function doesn’t do well with the placeholder - in the pipe. You can break the command down into individual lines instead of piping it all together and choose a filename for the intermediate files.