Artifact c98cabcb91a6036aaa458094d06881625f4f7fb0a3ce6d475c74aaad6230de02:
- Executable file mttroot/mtt/bin/trans/mtt_multi — part of check-in [3cd3edb0e6] at 2001-06-28 22:58:27 on branch origin/numerical-algebraic-solution — Using mtt_xargs.sh to prevent Arg list too long error. (user: geraint@users.sourceforge.net, size: 486) [annotate] [blame] [check-ins using] [more...]
#!/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 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