Mercurial > repo
view bin/learn @ 2874:f3d155a01289
<shachaf> echo $\'#!/bin/bash\\nyes "$@"\' > bin/z; chmod +x bin/z; wc bin/z
author | HackBot |
---|---|
date | Mon, 06 May 2013 14:47:30 +0000 |
parents | 231ca1c36641 |
children | 045228d20aca |
line wrap: on
line source
#!/bin/sh topic=$(echo "$1" | sed 's/ .*//' | lowercase) info=$(echo "$1" | sed 's/[^ ]* //') echo "$1" >"wisdom/$topic" echo "I knew that."