-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGet_vfld
More file actions
executable file
·60 lines (44 loc) · 820 Bytes
/
Get_vfld
File metadata and controls
executable file
·60 lines (44 loc) · 820 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
if [ $USER == "snh" ] ; then
loops="1 2"
elif [ $USER == "hlam" ] ; then
loops="4 3"
fi
for loop in $loops ; do
case $loop in
1)
EXP=heps_43h22_tg3
EXP_USER=snh
EXP_GROUP=se
periods=202105
;;
2)
EXP=heps_43h211
EXP_USER=fai
EXP_GROUP=no
periods=202105
;;
3)
EXP=heps_43h22_tg3
EXP_USER=fag
EXP_GROUP=no
periods=202101
;;
4)
EXP=heps_43h211
EXP_USER=fn7
EXP_GROUP=fi
periods=202101
;;
esac
for YYMM in $periods ; do
VFLD_WRK=$SCRATCH/vfld
mkdir -p $VFLD_WRK/$EXP
cd $VFLD_WRK/$EXP
echo "Handle vfld files in $PWD"
for F in $( find /hpc/perm/ms/$EXP_GROUP/$EXP_USER/HARMONIE/archive/$EXP/archive/extract/ -name "vfld${EXP}mbr???${YYMM}*.gz" ) ; do
echo " Unpack $F"
tar -zxf $F
done
done
done