Regex [ Not an issue ] [ Help needed ]
Akianonymus opened this issue · 0 comments
Akianonymus commented
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. 😀
Edit: Obviously without running a loop