summaryrefslogtreecommitdiffstats
path: root/.local/bin/passive
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/passive')
-rwxr-xr-x.local/bin/passive65
1 files changed, 65 insertions, 0 deletions
diff --git a/.local/bin/passive b/.local/bin/passive
new file mode 100755
index 0000000..276d61b
--- /dev/null
+++ b/.local/bin/passive
@@ -0,0 +1,65 @@
1#!/usr/bin/env bash
2
3irregulars="awoken|\
4 been|born|beat|\
5 become|begun|bent|\
6 beset|bet|bid|\
7 bidden|bound|bitten|\
8 bled|blown|broken|\
9 bred|brought|broadcast|\
10 built|burnt|burst|\
11 bought|cast|caught|\
12 chosen|clung|come|\
13 cost|crept|cut|\
14 dealt|dug|dived|\
15done|drawn|dreamt|\
16driven|drunk|eaten|fallen|\
17fed|felt|fought|found|\
18fit|fled|flung|flown|\
19forbidden|forgotten|\
20foregone|forgiven|\
21forsaken|frozen|\
22gotten|given|gone|\
23ground|grown|hung|\
24heard|hidden|hit|\
25held|hurt|kept|knelt|\
26knit|known|laid|led|\
27leapt|learnt|left|\
28lent|let|lain|lighted|\
29lost|made|meant|met|\
30misspelt|mistaken|mown|\
31overcome|overdone|overtaken|\
32overthrown|paid|pled|proven|\
33put|quit|read|rid|ridden|\
34rung|risen|run|sawn|said|\
35seen|sought|sold|sent|\
36set|sewn|shaken|shaven|\
37shorn|shed|shone|shod|\
38shot|shown|shrunk|shut|\
39sung|sunk|sat|slept|\
40slain|slid|slung|slit|\
41smitten|sown|spoken|sped|\
42spent|spilt|spun|spit|\
43split|spread|sprung|stood|\
44stolen|stuck|stung|stunk|\
45stridden|struck|strung|\
46striven|sworn|swept|\
47swollen|swum|swung|taken|\
48taught|torn|told|thought|\
49thrived|thrown|thrust|\
50trodden|understood|upheld|\
51upset|woken|worn|woven|\
52wed|wept|wound|won|\
53withheld|withstood|wrung|\
54written"
55
56if [ "$1" = "" ]; then
57 echo "usage: $(basename "$0") <file> ..."
58 exit
59fi
60
61grep -E -n -i --color \
62 "\\b(am|are|were|being|is|been|was|be)\
63 \\b[ ]*(\w+ed|($irregulars))\\b" "$*"
64
65exit $?