about summary refs log tree commit diff stats
path: root/src/feline.sh
blob: d293b9c58489517322fe15cdabaef62933966700 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

cat *.txt | \
    sed -e '/^---$/,/^...$/d' \
        -e '/!\?\[.*\]\((.*)\|:.*\)/d' | \
    sed -e 's/["_~.!?,():;<>{}#|*]//g' \
        -e 's/\]\[/ /g' \
        -e 's/-/ /g' | \
    sed -e 's/ /\n/g' | \
    sed -e '/^$/d' \
        -e '/^\\$/d' | \
    sed -e 's/\[\?\(.*\)\]\[.*\]/\1/g' \
        -e 's/\]\[\]//g' \
        -e 's/^\[//' | \
    sort | \
    uniq | \
    sort

# [feline.sh][]