anki.sh - flashcard-tools - Tools for working with LaTeX flashcards
HTML git clone git://lumidify.org/flashcard-tools.git (fast, but not encrypted)
HTML git clone https://lumidify.org/flashcard-tools.git (encrypted, but very slow)
HTML git clone git://4kcetb7mo7hj6grozzybxtotsub5bempzo4lirzc3437amof2c2impyd.onion/flashcard-tools.git (over tor)
DIR Log
DIR Files
DIR Refs
DIR README
---
anki.sh (333B)
---
1 rm -f anki.tsv
2 for card in `ls flashcards`
3 do
4 meta1=`head -n 1 "flashcards/$card" | tr -d '\n'`
5 meta2=`sed '2!d' "flashcards/$card" | tr -d '\n'`
6 body=`tail -n +3 "flashcards/$card" | sed 's/%.*$//g' | tr '\n' ' '`
7 printf '%s\t[latex]%s: %s[/latex]\t[latex]%s[/latex]\n' "$card" "${meta1%%\|*}" "$meta2" "$body" >> anki.tsv
8 done