-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunFEAT
More file actions
executable file
·45 lines (37 loc) · 750 Bytes
/
runFEAT
File metadata and controls
executable file
·45 lines (37 loc) · 750 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
#!/bin/sh
#
# Copyright (C) Eugene Duff 2004 University of Oxford
#
# SHCOPYRIGHT
Usage() {
function=`basename $0`
echo function to quickly run multiple feat analyses on cluster
echo $function [option] feat_files
echo -p x pause x minutes
exit
}
[ "$1" = "" ] && Usage
firstchar=`echo $1 | head -c 1`
while [[ $firstchar == '-' ]]
do
if [[ $1 == -p ]]
then echo sleeping
sleep $2m
shift 2
elif [[ $1 == -c ]]
then chdirflag=1
shift 1
fi
firstchar=`echo $1 | head -c 1`
done
currdir=`pwd`
for a in $@;do
if [[ $chdirflag == 1 ]]
then
cd `dirname $a`
feat `basename $a`;
cd $currdir
else
feat $a;
fi
done;