about summary refs log tree commit diff stats
path: root/src/feline.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/feline.sh')
-rw-r--r--src/feline.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/feline.sh b/src/feline.sh new file mode 100644 index 0000000..d293b9c --- /dev/null +++ b/src/feline.sh
@@ -0,0 +1,19 @@
1#!/bin/bash
2
3cat *.txt | \
4 sed -e '/^---$/,/^...$/d' \
5 -e '/!\?\[.*\]\((.*)\|:.*\)/d' | \
6 sed -e 's/["_~.!?,():;<>{}#|*]//g' \
7 -e 's/\]\[/ /g' \
8 -e 's/-/ /g' | \
9 sed -e 's/ /\n/g' | \
10 sed -e '/^$/d' \
11 -e '/^\\$/d' | \
12 sed -e 's/\[\?\(.*\)\]\[.*\]/\1/g' \
13 -e 's/\]\[\]//g' \
14 -e 's/^\[//' | \
15 sort | \
16 uniq | \
17 sort
18
19# [feline.sh][]