# One-linerize an XML (so that it can be split with 'split -l', for example) perl -e 'my $line="";while(<>){chomp;$line.=$_;if($_ eq ""){$line=~s/>\s+ pines-marca$i.xml; done