Mercurial > repo
view bin/slashlearn @ 5838:600e1ac6d932
<b_jonas> ` o=bin/culprits-c && echo $\'#!/bin/sh\\n\'\'culprits "$@" | tr \\ \\\\n | sort | uniq -c | sort -rn | tr -s \\\\n\\ \\ \' > "$o" && chmod a+x "$o"
author | HackBot |
---|---|
date | Sun, 12 Jul 2015 12:44:14 +0000 |
parents | e281f5947a6a |
children | 9c7426991c5f 9c603f748542 |
line wrap: on
line source
#!/bin/bash topic=$(echo "$1" | lowercase | cut -d / -f 1) [ -z "$topic" ] && exit 1 value=$(echo "$1" | cut -d / -f 2-) echo "$value" > wisdom/"$topic" && echo "Learned «$topic»"