Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2018-09-19 12:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Eventually, "covfefe" will come to mean:













    Results (166 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!