I'm running grep
on Windows 7 via Cygwin, and I'm new to it. I just ran it on a file, and the only output that I got back was the filename that I ran it on. Does this mean it failed to find the specified string in the file? The output it gives seems to be bare at best; confusing at worst, and I haven't been able to find this documented anywhere, apart from how it will look like when given certain options.
What will be printed if grep has found the right string? What will be printed if it hasn't?