in reply to Re: Finding part of a file
in thread Finding part of a file
This is what struck me as the most obvious solution, but, of course, there's more than one obvious way to do it...my $begin = shift @ARGV; my $end = shift @ARGV; $_=<> until /^$begin$/; while (<>) { last if /^$end$/; print; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Finding part of a file
by belden (Friar) on Dec 05, 2001 at 11:28 UTC | |
by blakem (Monsignor) on Dec 05, 2001 at 13:15 UTC | |
by belden (Friar) on Dec 05, 2001 at 22:54 UTC |