Mercurial > repo
view le/rn_append @ 11662:a5a4dfa2d77a draft
<oerjan> addquote <Ana-> Excuse me, I entered the channel without knowing what it was. I just wanted to talk to people <Ana-> \xf0\x9f\x98\xa5 <Phantom_Hoover> idk if you\'re likely to have much luck there <Phantom_Hoover> this channel is mostly full of computer programmers, not people
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Wed, 05 Dec 2018 19:30:16 +0000 |
parents | 6cd17a5c5808 |
children | 42f2882255c3 |
line wrap: on
line source
sep="//" [[ "$1" == ?*"$sep"* ]] || exit 1 topic="$(echo "${1%%$sep*}" | lowercase)" stuff="${1#*$sep}" perl -i -p -e 's/\n/ /' "wisdom/$topic" echo "$stuff" >>"wisdom/$topic" echo -n "Learned '$topic': " cat "wisdom/$topic"