1 line
168 B
Bash
1 line
168 B
Bash
IFS=$'\n'; for spell in $(cat spells.txt | grep -P "^#\d+" | sed 's/#//g' | sed 's/!.\+\?$//g'); do grep -P "\[\"$spell-" ../WeakAurasIridian.lua > out/$spell.txt; done |