1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
# Does mutiple commands down the hierarchy
command=$1
system=$2
rep=$3
lang=$4
maxlevel=$5
if [ -z "$maxlevel" ]; then
maxlevel=1;
fi
ls $2*_$3.$4 |\
awk '{
level=split($1,foo,"_")-2;
if (level<=maxlevel) print command, $0, "&";
'} command=$command maxlevel=$maxlevel
|
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
# Does mutiple commands down the hierarchy
command=$1
system=$2
rep=$3
lang=$4
maxlevel=$5
if [ -z "$maxlevel" ]; then
maxlevel=0;
fi
ls $2*_$3.$4 |\
awk '{
level=split($1,foo,"_")-2;
if (level<=maxlevel) print command, $0, "&";
'} command=$command maxlevel=$maxlevel
|