Resisting the temptation to say "Silly boy!", change quotes to suit.
perl -ple"/^</root>/ and map{ scalar <> } 1..3" file.xml >new.xml
In reply to Re: Replacing Lines in 100 Gig file
by BrowserUk
in thread Replacing Lines in 100 Gig file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |