# HG changeset patch # User HackEso # Date 1574613076 0 # Node ID 652d1c5a24bebb6b7257608428d5dcca8d89b9f2 # Parent 1687b4cdce7a17ee06f10f1d7efcec5363e42863 ` mv /hackenv/le/rn_append /hackenv/bin/slashlearn_append && ln -sf /hackenv/bin/slashlearn_append /hackenv/le/rn_append # let\'s make that consistent diff -r 1687b4cdce7a -r 652d1c5a24be bin/slashlearn_append --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/slashlearn_append Sun Nov 24 16:31:16 2019 +0000 @@ -0,0 +1,8 @@ +sep="//" +[[ "$1" == ?*"$sep"* ]] || exit 1 +topic="$(echo "${1%%$sep*}" | lowercase)" +stuff="${1#*$sep}" +perl -i -p -e 's/\n/ /' "${HACKENV-/hackenv}/wisdom/$topic" +echo "$stuff" >>"${HACKENV-/hackenv}/wisdom/$topic" +echo -n "Learned '$topic': " +cat "${HACKENV-/hackenv}/wisdom/$topic" diff -r 1687b4cdce7a -r 652d1c5a24be le/rn_append --- a/le/rn_append Sun Nov 24 16:25:43 2019 +0000 +++ b/le/rn_append Sun Nov 24 16:31:16 2019 +0000 @@ -1,8 +1,1 @@ -sep="//" -[[ "$1" == ?*"$sep"* ]] || exit 1 -topic="$(echo "${1%%$sep*}" | lowercase)" -stuff="${1#*$sep}" -perl -i -p -e 's/\n/ /' "${HACKENV-/hackenv}/wisdom/$topic" -echo "$stuff" >>"${HACKENV-/hackenv}/wisdom/$topic" -echo -n "Learned '$topic': " -cat "${HACKENV-/hackenv}/wisdom/$topic" +/hackenv/bin/slashlearn_append \ No newline at end of file