diff options
Diffstat (limited to '.local/bin/passive')
-rwxr-xr-x | .local/bin/passive | 65 |
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 | |||
3 | irregulars="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|\ | ||
15 | done|drawn|dreamt|\ | ||
16 | driven|drunk|eaten|fallen|\ | ||
17 | fed|felt|fought|found|\ | ||
18 | fit|fled|flung|flown|\ | ||
19 | forbidden|forgotten|\ | ||
20 | foregone|forgiven|\ | ||
21 | forsaken|frozen|\ | ||
22 | gotten|given|gone|\ | ||
23 | ground|grown|hung|\ | ||
24 | heard|hidden|hit|\ | ||
25 | held|hurt|kept|knelt|\ | ||
26 | knit|known|laid|led|\ | ||
27 | leapt|learnt|left|\ | ||
28 | lent|let|lain|lighted|\ | ||
29 | lost|made|meant|met|\ | ||
30 | misspelt|mistaken|mown|\ | ||
31 | overcome|overdone|overtaken|\ | ||
32 | overthrown|paid|pled|proven|\ | ||
33 | put|quit|read|rid|ridden|\ | ||
34 | rung|risen|run|sawn|said|\ | ||
35 | seen|sought|sold|sent|\ | ||
36 | set|sewn|shaken|shaven|\ | ||
37 | shorn|shed|shone|shod|\ | ||
38 | shot|shown|shrunk|shut|\ | ||
39 | sung|sunk|sat|slept|\ | ||
40 | slain|slid|slung|slit|\ | ||
41 | smitten|sown|spoken|sped|\ | ||
42 | spent|spilt|spun|spit|\ | ||
43 | split|spread|sprung|stood|\ | ||
44 | stolen|stuck|stung|stunk|\ | ||
45 | stridden|struck|strung|\ | ||
46 | striven|sworn|swept|\ | ||
47 | swollen|swum|swung|taken|\ | ||
48 | taught|torn|told|thought|\ | ||
49 | thrived|thrown|thrust|\ | ||
50 | trodden|understood|upheld|\ | ||
51 | upset|woken|worn|woven|\ | ||
52 | wed|wept|wound|won|\ | ||
53 | withheld|withstood|wrung|\ | ||
54 | written" | ||
55 | |||
56 | if [ "$1" = "" ]; then | ||
57 | echo "usage: $(basename "$0") <file> ..." | ||
58 | exit | ||
59 | fi | ||
60 | |||
61 | grep -E -n -i --color \ | ||
62 | "\\b(am|are|were|being|is|been|was|be)\ | ||
63 | \\b[ ]*(\w+ed|($irregulars))\\b" "$*" | ||
64 | |||
65 | exit $? | ||