Platinum Partner

Perl Script To Apply A Ruby File To All Xml Files

Perl script to apply a ruby file to all xml files and to prepend its output with the filename.


ls *xml | perl -ne 'chomp($f = $_);@l = readpipe("cat $f|~/src/aangifte_naar_csv.rb"); print map { "$f,$_" } (@l)' > pl_uitvoer.csv
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}