Skip to content

Instantly share code, notes, and snippets.

@jpata
Created August 10, 2012 08:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpata/3312544 to your computer and use it in GitHub Desktop.
Save jpata/3312544 to your computer and use it in GitHub Desktop.
Copy all files in EOS directory
#!/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