diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/feline.sh | 19 | ||||
-rw-r--r-- | src/nolink.sh | 14 |
2 files changed, 0 insertions, 33 deletions
diff --git a/src/feline.sh b/src/feline.sh deleted file mode 100644 index d293b9c..0000000 --- a/src/feline.sh +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | cat *.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][] | ||
diff --git a/src/nolink.sh b/src/nolink.sh deleted file mode 100644 index b4d6c3e..0000000 --- a/src/nolink.sh +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | unlinks=( $(grep -L '\[.*\]\[.*\]' *) ) | ||
4 | total_things=$(ls | wc -l) | ||
5 | |||
6 | if [[ -n $1 && $1 == "-l" ]]; then | ||
7 | echo ${unlinks[@]} | tr ' ' '\n' | ||
8 | else | ||
9 | echo "${unlinks[$((RANDOM %= $((${#unlinks[@]}))))]}" | ||
10 | echo "(${#unlinks[@]} of $total_things still to link.)" | ||
11 | fi | ||
12 | |||
13 | |||
14 | #[no link][] | ||