annotate bin/slashlearn @ 5311:68e4ebb2c862

<Jafet> ` echo \'main(i){while(i&&i||i);}\' >/tmp/a.c && gcc -c -std=c99 -Wall -Wextra /tmp/a.c
author HackBot
date Sun, 12 Apr 2015 04:46:58 +0000
parents 7a75388fddf0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5010
e281f5947a6a <shachaf> ` echo $\'#!/bin/bash\\ntopic=$(echo "$1" | lowercase | cut -d / -f 1)\\n[ -z "$topic" ] && exit 1\\nvalue=$(echo "$1" | cut -d / -f 2-)\\necho "$value" > wisdom/"$topic" && echo "Learned \xc2\xab$topic\xc2\xbb"\' > bin/slashlearn
HackBot
parents:
diff changeset
1 #!/bin/bash
e281f5947a6a <shachaf> ` echo $\'#!/bin/bash\\ntopic=$(echo "$1" | lowercase | cut -d / -f 1)\\n[ -z "$topic" ] && exit 1\\nvalue=$(echo "$1" | cut -d / -f 2-)\\necho "$value" > wisdom/"$topic" && echo "Learned \xc2\xab$topic\xc2\xbb"\' > bin/slashlearn
HackBot
parents:
diff changeset
2 topic=$(echo "$1" | lowercase | cut -d / -f 1)
e281f5947a6a <shachaf> ` echo $\'#!/bin/bash\\ntopic=$(echo "$1" | lowercase | cut -d / -f 1)\\n[ -z "$topic" ] && exit 1\\nvalue=$(echo "$1" | cut -d / -f 2-)\\necho "$value" > wisdom/"$topic" && echo "Learned \xc2\xab$topic\xc2\xbb"\' > bin/slashlearn
HackBot
parents:
diff changeset
3 [ -z "$topic" ] && exit 1
e281f5947a6a <shachaf> ` echo $\'#!/bin/bash\\ntopic=$(echo "$1" | lowercase | cut -d / -f 1)\\n[ -z "$topic" ] && exit 1\\nvalue=$(echo "$1" | cut -d / -f 2-)\\necho "$value" > wisdom/"$topic" && echo "Learned \xc2\xab$topic\xc2\xbb"\' > bin/slashlearn
HackBot
parents:
diff changeset
4 value=$(echo "$1" | cut -d / -f 2-)
5165
7a75388fddf0 <shachaf> revert 5151
HackBot
parents: 5152
diff changeset
5 echo "$value" > wisdom/"$topic" && echo "Learned «$topic»"