Post thumbnail of Stop piping cat into grep
12 February 2010
Continue reading Stop piping cat into grep

Stop piping cat into grep

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.

Powered by Wordpress   |   Lunated designed by ZenVerse