changeset 11913:60f7b5cdcdb7 draft

<int-e> ` mv learn_append bin
author HackEso <hackeso@esolangs.org>
date Thu, 15 Aug 2019 10:51:32 +0000
parents a27f7b5f593b
children 7e41237f750b
files bin/learn_append learn_append
diffstat 2 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/bin/learn_append	Thu Aug 15 10:51:00 2019 +0000
+++ b/bin/learn_append	Thu Aug 15 10:51:32 2019 +0000
@@ -1,7 +1,1 @@
-#!/bin/bash
-topic="$(echo "$1" | lowercase | sed 's/s\? .*//')"
-stuff=$(echo "$1" | cut -d' ' -f2-)
-perl -i -p -e 's/\n/ /' "wisdom/$topic"
-echo "$stuff" >>"wisdom/$topic"
-echo -n "Learned '$topic': "
-cat "wisdom/$topic"
+echo "Usage: le/rn_append keyword//Text you'd like to append."
--- a/learn_append	Thu Aug 15 10:51:00 2019 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-echo "Usage: le/rn_append keyword//Text you'd like to append."