EWP-BplusToKstMuMu-AngAna/Code/FCNCFitter/moveToys.sh

25 lines
575 B
Bash
Executable File

#!/bin/sh
#Read the jobID
JobID="$1"
#Set the main dir (no capital letters as it is best practice not to mess up with system variables
main_dir=/home/lhcb/kopecna/B2KstarMuMu/code/ewp-Bplus2Kstmumu-AngAna/FCNCfitter/plots/Toys
mkdir "$main_dir/$JobID"
#Move the files into a folder
#list=("$main_dir/*_${JobID}_*")
#echo ${list[@]}
mv $main_dir/*_${JobID}_*.eps $main_dir/${JobID}/
mv $main_dir/*_${JobID}_*.root $main_dir/${JobID}/
#Remove the Run1 and Run2 only plots
rm $main_dir/$JobID/*_Run1_*
rm $main_dir/$JobID/*_Run2_*
#Echo we are done :)
echo "Cleaned."