I have a file example.txt which contains following text:
[one]: bla bla bla onebla twobla
[two]: hey heya noheya
[onemore]: i got mad and etc
I need to grep and show only text that after [myword]:
Tried to test grep [myword] /tmp/example.txt | cut -d ':' -f 2
On each [myword]
it prints all after brackets, but how can I get only the one I need only and not all?