annotate bin/slashlearn @ 6912:f6cfe22a201c

<lifthrasiir> ` (echo \'#!/bin/sh\'; echo \'echo Nice try.\') > bin/man && chmod a+x bin/man
author HackBot
date Fri, 19 Feb 2016 06:08:34 +0000
parents 556bd058172e
children 59c9be91adcd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6661
556bd058172e <oerjan> ` sed -i \'s!wisdom/[^"]*"!$(echo-p "wisdom/$key")"!\' bin/slashlearn
HackBot
parents: 6660
diff changeset
1 sep="/"; [[ "$0" == *//* ]] && sep="//"; [[ "$1" == ?*"$sep"* ]] || exit 1; key="$(echo "${1%%$sep*}" | lowercase)"; value="${1#*$sep}"; echo "$value" > "$(echo-p "wisdom/$key")" && echo "Learned «$key»"