Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Perl Script To Apply A Ruby File To All Xml Files

DZone's Guide to

Perl Script To Apply A Ruby File To All Xml Files

·
Free Resource
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
Topics:

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}