-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscanProjectForNames.sh
More file actions
executable file
·42 lines (37 loc) · 3.05 KB
/
scanProjectForNames.sh
File metadata and controls
executable file
·42 lines (37 loc) · 3.05 KB
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
40
41
42
##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
## (C) Copyright 2018-2024 Modeling Value Group B.V. (http://modelingvalue.org) ~
## ~
## Licensed under the GNU Lesser General Public License v3.0 (the 'License'). You may not use this file except in ~
## compliance with the License. You may obtain a copy of the License at: https://choosealicense.com/licenses/lgpl-3.0 ~
## Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on ~
## an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the ~
## specific language governing permissions and limitations under the License. ~
## ~
## Maintainers: ~
## Wim Bast, Tom Brus ~
## ~
## Contributors: ~
## Ronald Krijgsheld ✝, Arjan Kok, Carel Bast ~
## --------------------------------------------------------------------------------------------------------------------- ~
## In Memory of Ronald Krijgsheld, 1972 - 2023 ~
## Ronald was suddenly and unexpectedly taken from us. He was not only our long-term colleague and team member ~
## but also our friend. "He will live on in many of the lines of code you see below." ~
##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rm -f /tmp/*-list /tmp/o-*
cd ../cdm
find . -name \*.mps -type f ! -name \*.migration.mps -exec cat {} + \
| sed -E 's/ (id|role|node|concept|index|flags|to|ref)="[^"]*"/ /g' \
| sed -E 's/[A-Z][a-z]/ &/g' \
| sed -E 's/[^a-zA-Z]/\n/g' \
| sed -E '/^.*([A-Z].*[a-z]|[a-z].*[A-Z]).*$/y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/' \
| egrep -v '^[0-9]' \
| sort -u \
> /tmp/$$-list
aspell -l en list < /tmp/$$-list > /tmp/$$-non-en-list
aspell -l nl list < /tmp/$$-list > /tmp/$$-non-nl-list
comm -23 /tmp/$$-non-en-list /tmp/$$-non-nl-list >/tmp/o-$$-nl
comm -13 /tmp/$$-non-en-list /tmp/$$-non-nl-list >/tmp/o-$$-en
comm -12 /tmp/$$-non-en-list /tmp/$$-non-nl-list >/tmp/o-$$-other
ls -l /tmp/o-*
rm -f /tmp/*-list
less /tmp/o-$$-nl