1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

Added links in bibliography

This commit is contained in:
Your Name
2020-07-03 07:50:04 -04:00
parent 8a662d76c8
commit 509f26836b
+7 -1
View File
@@ -102,7 +102,13 @@ oeis() (
do
author=$(<<<"$author" sed 's/[]\\\*\(\.[]/\\&/g')
sed -i "s|${author}|[${i}]|" ${TMP}/code_snippet
echo "[${i}] [${author}]" | tr -d '_' >> ${TMP}/bibliograpy
author_url='https://oeis.org/wiki/User:'"${author%%,*}"
echo "[${i}] [${author}] [${author_url}]" \
| tr -d '_' \
| rev \
| sed 's/ /_/' \
| rev \
>> ${TMP}/bibliograpy
let i++
done <${TMP}/authors
# Print snippet