dylanaraps / pure-bash-bible

📖 A collection of pure bash alternatives to external processes.
MIT License
36.49k stars 3.28k forks source link

Regex [ Not an issue ] [ Help needed ] #102

Closed Akianonymus closed 4 years ago

Akianonymus commented 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:

Edit: Obviously without running a loop