summaryrefslogtreecommitdiffstats
path: root/.local/bin/passive
diff options
context:
space:
mode:
authorYigit Sever2021-11-04 12:25:04 +0300
committerYigit Sever2021-11-04 12:25:04 +0300
commita0bb023d782dd2d8703670d560b5ccd8d25d640e (patch)
tree1c11a649e2201e1458c4011894086f49da5ded15 /.local/bin/passive
parent93cdb13eada4e803fb4db71fb581d9e4a03d2119 (diff)
downloaddotfiles-a0bb023d782dd2d8703670d560b5ccd8d25d640e.tar.gz
dotfiles-a0bb023d782dd2d8703670d560b5ccd8d25d640e.tar.bz2
dotfiles-a0bb023d782dd2d8703670d560b5ccd8d25d640e.zip
bins: shfmt, weasel suite, spark
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 $?