in reply to Re^2: delete lines
in thread delete lines
It somewhat depends on the context of what you want to do... but this might be a starting point:
#!/usr/bin/perl while (<>) { # skip initial unwanted lines next if /^<\?xml version/ .. /^<\/Info>/; # process the lines you want... print; }
You can of course also explicitly open the file instead of using the magic <>.
|
|---|