in reply to Finding part of a file
% perl -ne 'print if /^banana$/ .. /^grape$/' fruit.txt banana pear peach grape % cat fruit.txt apple banana pear peach grape orange
-Blake
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Finding part of a file
by jbert (Priest) on Dec 04, 2001 at 19:42 UTC | |
by impossiblerobot (Deacon) on Dec 04, 2001 at 22:07 UTC |