Mercurial > repo
diff bin/learn @ 3561:045228d20aca
<oerjan> sed -i \'s/echo/echo -E/g\' bin/learn
author | HackBot |
---|---|
date | Thu, 29 Aug 2013 22:31:11 +0000 |
parents | 231ca1c36641 |
children | 77af90111409 |
line wrap: on
line diff
--- a/bin/learn Thu Aug 29 22:24:25 2013 +0000 +++ b/bin/learn Thu Aug 29 22:31:11 2013 +0000 @@ -1,6 +1,6 @@ #!/bin/sh -topic=$(echo "$1" | sed 's/ .*//' | lowercase) -info=$(echo "$1" | sed 's/[^ ]* //') -echo "$1" >"wisdom/$topic" -echo "I knew that." +topic=$(echo -E "$1" | sed 's/ .*//' | lowercase) +info=$(echo -E "$1" | sed 's/[^ ]* //') +echo -E "$1" >"wisdom/$topic" +echo -E "I knew that."