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/nolink.sh | |
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/nolink.sh')
-rw-r--r-- | src/nolink.sh | 14 |
1 files changed, 0 insertions, 14 deletions
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][] | ||