diff options
author | Case Duckworth | 2015-03-12 10:12:18 -0700 |
---|---|---|
committer | Case Duckworth | 2015-03-12 10:12:18 -0700 |
commit | 0bb283954b65a7913b1f304442b6a941f5856d73 (patch) | |
tree | c9d3116390e45e96eefd1a697d9f704d4e937069 /src | |
parent | Fix #8 - dedication bug - & change epigraph org (diff) | |
download | autocento-0bb283954b65a7913b1f304442b6a941f5856d73.tar.gz autocento-0bb283954b65a7913b1f304442b6a941f5856d73.zip |
Add a favicon and compile all files down
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][] | ||