Overview
Comment: | Initial revision |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
c32000040384e5b0c117441c84ce0515 |
User & Date: | gawthrop@users.sourceforge.net on 1996-11-10 10:48:45 |
Other Links: | branch diff | manifest | tags |
Context
1996-11-11
| ||
17:18:32 | VERSION 2.1 check-in: 369009b211 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
1996-11-10
| ||
10:48:45 | Initial revision check-in: c320000403 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
1996-11-09
| ||
21:17:38 | Fixed bug with copying at level 0. check-in: 1db7be7228 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Added mttroot/mtt/bin/mtt_find version [41f2f3af7d].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | #! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### # Bourne shell script: mtt_find # mtt_find path name operation # P.J.Gawthrop Nov 1996 # Copyright (c) P.J.Gawthrop 1996 ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ############################################################### path=$1 name=$2 operation=$3 all=$4 # awk splits the path into components and writes a find for each # If all argument null, then succesful find terminates. awk 'END{ \ n=split(path,a,":"); if (all == "") { printf("if "); } for (i=1;i<=n;i++) { printf("find %s -name \"%s\" -exec %s {} \\; \n", a[i], name, operation); if (all == "") { printf("then\n"); printf("exit\n"); printf("fi\n"); } } }' path="$path" name="$name" operation="$operation" all="$all"</dev/null |