-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgetforces.sh
executable file
·34 lines (21 loc) · 1.02 KB
/
getforces.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
#!/bin/bash
##RUN THIS SCRIPT INSIDE THE DIRECOTRY WHERE THE DIRECTORIES CONTAINING THE OUTPUTS FILES WHERE CREATED.
name=${PWD##*/}
outer=1 #outer loop counter
getforces='/home/laura/apps/vtstscripts-929home/vef.pl'
#begining of outer loop
for dir in */ ; do
cd $dir
vef.pl
#$getforces
molecule=${PWD##*/}
F=`tail -n1 fe.dat`
cat>> ../forcess_$name.txt <<EOF
${PWD##*/} ${F}
EOF
cd ..
done
column -t forcess_$name.txt >> forcess$name.txt
rm forcess_$name.txt
echo
exit 0