Overview
Comment:Using mtt_xargs.sh to prevent Arg list too long error.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | origin/numerical-algebraic-solution | trunk
Files: files | file ages | folders
SHA3-256: 3cd3edb0e63d9133f22a7ccbec8f3482aab16b9905617c8269cdb94bc088027b
User & Date: geraint@users.sourceforge.net on 2001-06-28 22:58:27.000
Other Links: branch diff | manifest | tags
Context
2001-06-30
03:26:20
gcc-3.0 compatibility. check-in: f80e872abe user: geraint@users.sourceforge.net tags: origin/numerical-algebraic-solution, trunk
2001-06-28
22:58:27
Using mtt_xargs.sh to prevent Arg list too long error. check-in: 3cd3edb0e6 user: geraint@users.sourceforge.net tags: origin/numerical-algebraic-solution, trunk
2001-06-26
23:16:12
Moved from trans directory to bin directory. check-in: a1d300ea5b user: geraint@users.sourceforge.net tags: origin/numerical-algebraic-solution, trunk
Changes
10
11
12
13
14
15
16
17

18
19
20
21
22
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  |\
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
12
13
14
15
16
17
18



19
20
21
22
23
24
25

26
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

28
29







+
+
+






-
+

# Each command is of the form $1 $2_*_$3 &

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.2  1996/11/09 21:16:06  peterg
## *** empty log message ***
##
# Revision 1.1  1996/10/21  12:31:40  peterg
# Initial revision
#
###############################################################


(ls $2*_$3 \
(mtt_xargs.sh "ls" "$2*_$3" \
| sed "s/\(.*_*\)$3/$1 \1$3 \&/")
12
13
14
15
16
17
18



19
20
21
22
23
24

25
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

27
28







+
+
+





-
+

# Each command is of the form $1 $2_*_$3 > $2_*_$4

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.2  1996/11/09 21:16:19  peterg
## *** empty log message ***
##
# Revision 1.1  1996/10/21  12:34:47  peterg
# Initial revision
#
###############################################################

(ls $2*_$3 \
(mtt_xargs.sh "ls" "$2*_$3" \
| sed "s/\(.*_*\)$3/$1 \1$3 > \1$4 /")

MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]