summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorCase Duckworth2015-03-12 10:12:18 -0700
committerCase Duckworth2015-03-12 10:12:18 -0700
commit0bb283954b65a7913b1f304442b6a941f5856d73 (patch)
treec9d3116390e45e96eefd1a697d9f704d4e937069 /src
parentFix #8 - dedication bug - & change epigraph org (diff)
downloadautocento-0bb283954b65a7913b1f304442b6a941f5856d73.tar.gz
autocento-0bb283954b65a7913b1f304442b6a941f5856d73.zip
Add a favicon and compile all files down
Diffstat (limited to 'src')
-rw-r--r--src/feline.sh19
-rw-r--r--src/nolink.sh14
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
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][]
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
3unlinks=( $(grep -L '\[.*\]\[.*\]' *) )
4total_things=$(ls | wc -l)
5
6if [[ -n $1 && $1 == "-l" ]]; then
7 echo ${unlinks[@]} | tr ' ' '\n'
8else
9 echo "${unlinks[$((RANDOM %= $((${#unlinks[@]}))))]}"
10 echo "(${#unlinks[@]} of $total_things still to link.)"
11fi
12
13
14#[no link][]