You know, you can also say": q drmedia ... CMDFILE=/tmp/checkout.txt CMD=&VOL&NL which makes a nice one-volume-per-line files suitable for input to other scripts.