Mercurial > repo
view bin/learn_append @ 4980:5429ff38eef2
<Lyrissa> touch "\\`echo test > testing12345; mv testing12345 .hg\\`.orig"
author | HackBot |
---|---|
date | Tue, 30 Sep 2014 06:47:33 +0000 |
parents | c4aabc33e0d5 |
children |
line wrap: on
line source
#!/bin/bash topic=$(echo "$1" | lowercase | sed 's/^\(an\?\|the\) //;s/s\? .*//') stuff=$(echo "$1" | cut -d' ' -f2-) perl -i -p -e 's/\n/ /' "wisdom/$topic" echo "$stuff" >>"wisdom/$topic" echo "I knew that."