10
11
12
13
14
15
16
17
18
19
20
21
22
|
current_level=`echo $system | awk '{N=split($1,foo,"_"); print N-1}'`
if [ -z "$relative_level" ]; then
relative_level=0;
fi
ls $2*_$3.$4 |\
awk '{
level=split($1,foo,"_")-2;
maxlevel = current_level + relative_level;
if (level<=maxlevel) print command, $0, "&";
'} command=$command relative_level=$relative_level current_level=$current_level
|
|
|
10
11
12
13
14
15
16
17
18
19
20
21
22
|
current_level=`echo $system | awk '{N=split($1,foo,"_"); print N-1}'`
if [ -z "$relative_level" ]; then
relative_level=0;
fi
mtt_xargs.sh "ls" "$2*_$3.$4" |\
awk '{
level=split($1,foo,"_")-2;
maxlevel = current_level + relative_level;
if (level<=maxlevel) print command, $0, "&";
'} command=$command relative_level=$relative_level current_level=$current_level
|