Closed Akianonymus closed 4 years ago
Can we use bash regex to match on multiple lines ?
For ex,
hello: one hello: 2 Something: four random: file
I want to extract just hello lines without grep, this may sound unnecessary, but just finding a way for the curious mind. :grinning:
hello
Edit: Obviously without running a loop
Can we use bash regex to match on multiple lines ?
For ex,
I want to extract just
hello
lines without grep, this may sound unnecessary, but just finding a way for the curious mind. :grinning:Edit: Obviously without running a loop