-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollect.lsf
46 lines (44 loc) · 1.17 KB
/
collect.lsf
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
#!/bin/bash
# #####make direction PFcollection########
# PFcollection=`find -name PFcollection -type d`
# a=`expr length "$PFcollection"`
# if(($a>0))
# then
# rm -r PFcollection
# mkdir PFcollection
# else
# mkdir PFcollection
# fi
######copy download_RTA-trace-e_ptype.txt to PFcollection and rename as filepath######
path=`cat collection_path.txt`
cd $path
pwd=`pwd`
for dir in `ls|grep -v lsf|grep -v txt|grep -v PFcollection|grep -v csv`
do
cd ${dir}/test1/
Transport=`ls|grep Transport`
c=`expr length "$Transport"`
if (($c>0))
then
cd Transport/test_scan/
down=`find -name download_RTA-trace-e_ptype.txt`
b=`expr length "$down"`
if (($b>0))
then
cp download_RTA-trace-e_ptype.txt $pwd/PFcollection/${dir}.txt
else
Transgap=`getgap`
cd $pwd/${dir}
job=`ls *.txt|grep "<"`
echo "Transgap $Transgap-JobID $job-${dir} no download_RTA-trace-e_ptype.txt" >> $pwd/collectresult.txt
fi
cd $pwd
else
cd ..
job=`ls *.txt|grep "<"`
cd test1/Band/test_scan/
Bandgap=`getgap`
echo "Bandgap $Bandgap-JobID $job-${dir} no download_RTA-trace-e_ptype.txt" >> $pwd/collectresult.txt
cd $pwd
fi
done