comparison bin/learn @ 2717:231ca1c36641

<shachaf> sed -i \'s/tr A-Z a-z/lowercase/\' bin/learn
author HackBot
date Sun, 14 Apr 2013 21:48:22 +0000
parents e037173e0012
children 045228d20aca
comparison
equal deleted inserted replaced
2716:bb8aae82db7c 2717:231ca1c36641
1 #!/bin/sh 1 #!/bin/sh
2 topic=$(echo "$1" | sed 's/ .*//' | tr A-Z a-z) 2 topic=$(echo "$1" | sed 's/ .*//' | lowercase)
3 info=$(echo "$1" | sed 's/[^ ]* //') 3 info=$(echo "$1" | sed 's/[^ ]* //')
4 echo "$1" >"wisdom/$topic" 4 echo "$1" >"wisdom/$topic"
5 echo "I knew that." 5 echo "I knew that."
6 6