Artifact ee371ab031c997665c27d7e6b03d1a5e1873633f3bdb9151301a126536661e6f:
- Executable file mttroot/mtt/bin/trans/mtt_multi — part of check-in [dd1498363a] at 2000-09-14 12:40:45 on branch origin/master — Now works out the level correctely (user: gawthrop@users.sourceforge.net, size: 469) [annotate] [blame] [check-ins using]
#!/bin/sh # Does mutiple commands down the hierarchy command=$1 system=$2 rep=$3 lang=$4 relative_level=$5 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