Mercurial > repo
comparison bin/? @ 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 | e037173e0012 |
children | 48427dffea8d |
comparison
equal
deleted
inserted
replaced
1303:d0d374e9b617 | 1304:f6d465484eb5 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 topic=$(echo "$1" | tr A-Z a-z) | 2 topic=$(echo "$1" | tr A-Z a-z | sed "s/ *$//") |
3 [ -e "wisdom/$topic" ] || { echo "$1? ¯\(°_o)/¯"; exit 1; } | 3 [ -e "wisdom/$topic" ] || { echo "$1? ¯\(°_o)/¯"; exit 1; } |
4 cat "wisdom/$topic" | 4 cat "wisdom/$topic" |
5 | 5 |