Hello.
How can I enumerate the lines that are obtained as a result of searching for lines from grep ?
For example, I grep "mystring" file.txt
: grep "mystring" file.txt
. At the output, I get something like:
My home - it's mystring
Dont mysqtring
Jony mysqtring jastin
And I need:
- My home - it's mystring
- Dont mysqtring
- Jony mysqtring jastin