Regex [ Not an issue ] [ Help needed ]
Akianonymus opened this issue Β· comments
Akshay 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