Use the following **grep** approach:
grep -Pzo '(?s)
The output:
BASH is awesome2
BASH is awesome3
texttext
* * *
`*?` \- non-greedy modifier
Use the following **grep** approach:
grep -Pzo '(?s)
The output:
BASH is awesome2
BASH is awesome3
texttext
* * *
`*?` \- non-greedy modifier