in reply to Replacing Lines in 100 Gig file
Resisting the temptation to say "Silly boy!", change quotes to suit.
perl -ple"/^</root>/ and map{ scalar <> } 1..3" file.xml >new.xml
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Replacing Lines in 100 Gig file
by Anonymous Monk on Dec 17, 2004 at 18:25 UTC |