new-words

diff misc/notes2anki.pl @ 67:87bb1c5e6616

added de script to misc/
author Igor Chubin <igor@chub.in>
date Wed Mar 28 15:54:30 2012 +0200 (2012-03-28)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/misc/notes2anki.pl	Wed Mar 28 15:54:30 2012 +0200
     1.3 @@ -0,0 +1,8 @@
     1.4 +while(<>) {
     1.5 +    s/\@\S*//;
     1.6 +    s/;/,/g;
     1.7 +    my ($word, $notes) = split(/\s+/, $_, 2);
     1.8 +    if ($notes) {
     1.9 +        print $word,"   ;   ", $notes;
    1.10 +    }
    1.11 +}