单词自动记录

https://hectorguo.com/zh/save-words-in-dictionary/

将单词释义保存到文件下

FILE=$HOME/blog/source/words/index.md

格式化单词释义(把单词,音标,解释分离开)

RESULT=$(echo -e $1 | sed -E 's#([a-zA-Z]+) (\|[^\|]+\|)(.*)#\#\#\ \1\\n\\n\#\#\#\#\ \2\\n\\n>\3#g')
echo -e "\n$RESULT" >> $FILE