Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: How to reorder a text file

by Anonymous Monk
on Jun 11, 2018 at 22:12 UTC ( #1216440=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to reorder a text file
in thread How to reorder a text file

$ tac file | perl -ne'push@a,$_;if(/^Title\b/){print reverse@a;@a=()}'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1216440]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2018-07-18 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (393 votes). Check out past polls.

    Notices?