in reply to Reading multiple lines from text file
perl -ne 'print if / dev$/ .. / manage$/' < file
but it would only print the first "manage" line. To get all of them, you can use several flag variables that tell you where you are:
perl -ne '$in = 1 if / dev$/; $last_lines = 1 if / manage$/; $stop = 1 if $last_lines && ! / manage$/; print if $in && ! $stop; ' < file
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading multiple lines from text file
by newperlbie (Acolyte) on Aug 07, 2018 at 20:51 UTC | |
by choroba (Cardinal) on Aug 07, 2018 at 21:35 UTC | |
by Athanasius (Cardinal) on Aug 08, 2018 at 05:55 UTC | |
by newperlbie (Acolyte) on Aug 08, 2018 at 07:20 UTC | |
by Athanasius (Cardinal) on Aug 08, 2018 at 07:45 UTC | |
by newperlbie (Acolyte) on Aug 08, 2018 at 08:01 UTC | |
|