in reply to delete lines
$ perl -ne "print unless /^<\?xml version/ .. /^<\/Info>/" input.xml > +output.pseudoxml
(assuming the </PackageInfo> in your description refers to the </Info> in the data)
See the flip-flop operator.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: delete lines
by Anonymous Monk on Oct 29, 2009 at 09:18 UTC | |
by GrandFather (Saint) on Oct 29, 2009 at 09:32 UTC | |
by almut (Canon) on Oct 29, 2009 at 09:27 UTC |