new-words

view misc/notes2anki.pl @ 68:846240941452

added -C key: compress to lines; fixed bug with #90-line
author Igor Chubin <igor@chub.in>
date Sun Sep 23 16:07:29 2012 +0300 (2012-09-23)
parents
children
line source
1 while(<>) {
2 s/\@\S*//;
3 s/;/,/g;
4 my ($word, $notes) = split(/\s+/, $_, 2);
5 if ($notes) {
6 print $word," ; ", $notes;
7 }
8 }