-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathclean.sh
More file actions
executable file
·38 lines (36 loc) · 786 Bytes
/
clean.sh
File metadata and controls
executable file
·38 lines (36 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env bash
if [ ! "$1" ];then
echo USAGE MODEL
exit
fi
MODEL="$1"
#fix egrep special characters
MODEL=$(echo $MODEL | sed 's/+/::/g')
models="darkLR
diphotonModels
LR+DM
tripletLR
radinert+T13A
SM+HighScale
Zee
SimplifiedDM+IDM
SimplifiedDM+SDFDM
SimplifiedDM+TFDM
"
Nm=$(echo "$models" | wc -l)
models=$(echo "$models" |sed 's/+/::/g' | egrep -v '^'"$MODEL"'$' | sed 's/::/+/g')
Nmn=$(echo "$models" | wc -l)
if [ $Nm -ne $Nmn ] && [ -n "$models" ]; then
for m in $models;do
m=$(echo "$m" | sed 's/+/\//g')
echo rm -rf SARAH/Models/"$m"
rm -rf SARAH/Models/"$m"
m=$(echo "$m" | sed 's/\///g')
echo rm -rf SPHENO/"$m"
rm -rf SPHENO/"$m"
echo rm -rf micromegas/"$m"
rm -rf micromegas/"$m"
echo rm -rf madgraph/"$m"
rm -rf madgraph/"$m"
done
fi