-
Notifications
You must be signed in to change notification settings - Fork 1
/
collectResults.sh
executable file
·52 lines (47 loc) · 1.32 KB
/
collectResults.sh
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/env bash
cd /proj/sfcs-PG0/opt/ && mkdir -p Results
for exp in /proj/sfcs-PG0/opt/mongo_op/* ;
do
f1=`basename $exp`
for subexp in $exp/* ;
do
f2=`basename $subexp`
mkdir -p /proj/sfcs-PG0/opt/Results/$f1/$f2/
cmd="scp -o StrictHostKeyChecking=no $subexp/* /proj/sfcs-PG0/opt/Results/$f1/$f2/"
eval "$cmd"
done
done
for nodexp in /proj/sfcs-PG0/opt/Node_Ops/* ;
do
f1=`basename $nodexp`
for exp in $nodexp/* ;
do
f2=`basename $exp`
for subexp in $exp/* ;
do
f3=`basename $subexp`
mkdir -p /proj/sfcs-PG0/opt/Results/$f2/$f3/
cmd="scp -o StrictHostKeyChecking=no $subexp/* /proj/sfcs-PG0/opt/Results/$f2/$f3/"
eval "$cmd"
done
done
done
for uexp in /proj/sfcs-PG0/opt/Ue_Ops/* ;
do
f1=`basename $uexp`
for exp in $uexp/* ;
do
f2=`basename $exp`
for subexp in $exp/* ;
do
f3=`basename $subexp`
mkdir -p /proj/sfcs-PG0/opt/Results/$f2/$f3/
for filename in $subexp/* ;
do
f4=`basename $filename`
cmd="scp -o StrictHostKeyChecking=no $subexp/$f4 /proj/sfcs-PG0/opt/Results/$f2/$f3/${f4}_${f1}"
eval "$cmd"
done
done
done
done