Created
August 10, 2012 08:14
-
-
Save jpata/3312544 to your computer and use it in GitHub Desktop.
Copy all files in EOS directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
INDIR=/eos/cms/store/caf/user/dkonst/T_t-channel_TuneZ2star_8TeV-powheg-tauola_CAF_EDM/T_t-channel_TuneZ2star_8TeV-powheg-tauola-AOD-FASTSIM_5_2_6/ c02e037c328b91752ebcd32fa1215b6f | |
EOSCMD="/afs/cern.ch/project/eos/installation/0.1.0-22d/bin/eos.select" | |
COPYCMD=xrdcp | |
FILES=$($EOSCMD ls $INDIR) | |
OUTDIR=/afs/cern.ch/user/j/jpata/work/public | |
for f in $FILES | |
do | |
echo "Copying "$f | |
$COPYCMD root://eoscms/$INDIR/$f $OUTDIR/$f | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment