summaryrefslogtreecommitdiff
path: root/cad/src/tools/FindPatternInSource.sh
blob: 4d616055e8eaf456d0eeea62fd5537e6510b7a0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# run this in cad/src as tools/FindPatternInSource.sh
#
# reads patterns from stdin, and prints matches

while read line; do
    echo
    tools/AllPyFiles.sh | xargs grep "$line"
    echo .
    echo
done