-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathfind_bad_words.sh
More file actions
executable file
·24 lines (18 loc) · 1.48 KB
/
find_bad_words.sh
File metadata and controls
executable file
·24 lines (18 loc) · 1.48 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
#!/bin/bash
#Search for older releases
grep -E --color -nir --include=*.rst beryllium\|lithium docs
#Search for misspellings and miss-capitalizations of OpenFlow
grep -E --color -nir --include=*.rst "open\ ?flow" docs | grep -v OpenFlow | grep -v openflow: | grep -v -- -openflow- | grep -v openflowplugin | grep -v openflowjava | grep -v Openflow13 | grep -v _OPENFLOW | grep -v OpenflowNode | grep --color -i OpenFlow
#Search for misspellings and miss-capitalizations of OpenDaylight
grep -E --color -nir --include=*.rst "open\ ?daylight" docs | grep -v OpenDaylight | grep -v \.opendaylight\. | grep -v /opendaylight | grep -v =opendaylight | grep --color -i OpenDaylight
#Search for misspellings and miss-capitalizations of ACL
grep -E --color -nir --include=*.rst "[^-]acl[^-_\":]" docs | grep -v ACL | grep -vi maclearn | grep -vi oracle | grep --color -i acl
#the ovs[db] search seemed to produce only false positives
#egrep --color -nir --include=*.rst [^-/_\"\']ovs[^-:k_] docs | grep -v OVS | egrep -v ovsdb[:-] | grep --color -i ovs
#Search for git.opendaylight.org links to the next release as opposed the current release
# Note that past releases are caught above
grep -E --color -nir --include=*.rst hb=HEAD docs
grep -E --color -nir --include=*.rst hb=master docs
#Search for links to jenkins.opendaylight.org and logs.opendaylight.org, which are temporary
grep -E --color -nir --include=*.rst jenkins\.opendaylight\.org docs
grep -E --color -nir --include=*.rst logs\.opendaylight\.org docs