#!/bin/bash # # Timothy Brooks 2012 # # get_datasets - download all root files in a dataset (or wildcard) # VERSION=1.0 for dataset in "$@" do echo $dataset dq2-ls -f $dataset | cut -f 2 | grep root | tr "\\n" "," | xargs -i dq2-get -f {} $dataset done