magarena/scripts/split_cards.awk

14 lines
153 B
Awk
Raw Normal View History

2011-11-09 06:33:40 -08:00
/^>/ {
gsub(">","")
name = $0
fn = gensub("[^A-Za-z]", "_", "g", name) ".txt";
print ">" name >> fn
next
}
{
print $0 >> fn
}