Task

Fix Rosetta Code deprecated code tags, with these rules:

Change <%s> to <lang %s>
Change </%s> to </lang>
Change <code %s> to <lang %s>
Change </code> to </lang>



Usage

./convert.py < wikisource.txt > converted.txt



require 'printf strings files'
 
langs=. <;._1 LF -.~ noun define   NB. replace with real lang strings
 foo bar
 baz
)