Is it possible to print a search pattern result just until it hits a blank newline in terminal?
0
votes
3
answers
50
views
Say for example I have a file with contents like this:
# TODO: Optimize this.
alias bash='start bash'
# FIXME: Just fix this.
alias fix='there is something wrong with this
What I want is if I search for pattern
TODO:
it should only print result like this:
# TODO: Optimize this.
alias bash='start bash'
Is this possible?
Asked by cevhyruz
(477 rep)
Nov 5, 2018, 05:29 PM
Last activity: Nov 6, 2018, 01:13 AM
Last activity: Nov 6, 2018, 01:13 AM