Looking for all the libraries passed to the linker in Makefiles or some other minus-L thing? The easiest way around this is to escape the minus sign.
What if there’s no open file to be found, then what? If you were looking for some sort of media file, it might be easy to use a memory based distro with tools like photorec
Why cat something and pipe it into grep when grep can easily search a file by itself. It’s like taking your car to the dealership so you can change your own oil. What? No that doesn’t really make any sense. But neither does piping cat into grep. If you’re dealing with large files or complicated expressions, the reason you shouldn’t cat something into a pipe just to grep it becomes obviously clear.
Here’s a bunch of ways to get the ip addresses for all your network interfaces using ifconfig.