changeset 1304:f6d465484eb5

<oerjan> sed -i \'s/a-z/a-z | sed "s\\/ *$\\/\\/"/\' bin/\'?\'
author HackBot
date Mon, 07 Jan 2013 21:28:25 +0000
parents d0d374e9b617
children 2f762d913408
files bin/?
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/?	Mon Jan 07 21:23:15 2013 +0000
+++ b/bin/?	Mon Jan 07 21:28:25 2013 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-topic=$(echo "$1" | tr A-Z a-z)
+topic=$(echo "$1" | tr A-Z a-z | sed "s/ *$//")
 [ -e "wisdom/$topic" ] || { echo "$1? ¯\(°_o)/¯"; exit 1; }
 cat "wisdom/$topic"