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?
flag
link at the bottom of your Q and ask the moderator to move it. Please don't post the same Q on 2 different sites. Please read stackoverflow.com/help/how-to-ask stackoverflow.com/help/dont-ask and stackoverflow.com/help/mcve before posting more Qs here. Good luck.bash
andgrep
questions, a large portion of which do not relate directly to programming and have been well recieved. I'm failing to see what makes my question any different.