Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for f in *.ttx; do n=$(sed -n 's/^ *<Weight value="\(.*\)"\/> *$/\1/p' < "$f"); perl -i -0pe "s/Regular\n <\/namerecord>/${n}\n <\/namerecord>/gms" "$f"; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement