DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
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





Comments
Snippets Manager replied on Mon, 2012/05/07 - 3:04pm
Snippets Manager replied on Sat, 2008/10/18 - 9:28am
Snippets Manager replied on Thu, 2008/10/30 - 5:44pm