view paste/paste.26175 @ 7780:87f80d4bcedd

<oerjan> mkx bin/sedlast//files="$(lastfiles)"; sed -i "$1" "$files"; echo -n "$files//"; cat "$files"
author HackBot
date Fri, 06 May 2016 00:15:56 +0000
parents e037173e0012
children
line wrap: on
line source

#!/bin/sh
topic=$(echo "$1" | tr A-Z a-z)
[ -e "wisdom/$topic" ] || { echo "$1? ¯\(°_o)/¯"; exit 1; }
cat "wisdom/$topic"