I want to search Terminal output from a command for a string and display only the lines that include that string.
How can I do it?
I'm interested in searching the Terminal output, not a file. I have tried
ls --help | grep '--l '
but that gave me error.
If STRING starts with
'-'
or'--'
, it's necessary to utilize one of the following formats: