When we're filtering the output with grep, is there any way we can get line numbered output, like we get with
I'm not asking for the
grep -n option which shows the line number of the match in the file.
The scenario I want to use it in is that when I download multiple files using aria2, I usually filter the output with keyword NOTICE which gives me some output every time a file download is completed. But I have actually no way of knowing how many files have been downloaded.