changeset 6875:f0e600f03e07

<izabera> ` printf \'(($#==1)) && set -- "${1%% *}" "${1#* }"; key=${1,,}; shift; cat <<< "${*,,}" > "wisdom/$key" && echo "Learned \xc2\xab$key\xc2\xbb"\' > bin/leann
author HackBot
date Tue, 16 Feb 2016 01:49:01 +0000
parents 77b8a052473c
children 5299fc7d9347
files bin/leann
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/leann	Tue Feb 16 01:27:40 2016 +0000
+++ b/bin/leann	Tue Feb 16 01:49:01 2016 +0000
@@ -1,1 +1,1 @@
-key=${1,,}; shift; cat <<< "${*,,}" > "wisdom/$key" && echo "Learned «$key»"
+(($#==1)) && set -- "${1% *}" "${1#* }"; key=${1,,}; shift; cat <<< "${*,,}" > "wisdom/$key" && echo "Learned «$key»"
\ No newline at end of file