Mercurial > repo
diff bin/learn_append @ 11913:60f7b5cdcdb7 draft
<int-e> ` mv learn_append bin
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Thu, 15 Aug 2019 10:51:32 +0000 |
parents | 364f0d88ee3a |
children |
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."