#!/bin/csh ### # Example 1. Select all datasets for run 0512 ### set list=`fmsh ls "/RAW/R94A/0512/*" -g` ### # Print all dataset names ## foreach file ( $list ) printf "Dataset: %s\n" $file ## # Stage tape ## fmsh find $file my_file.ds -n do_something end