Post thumbnail of Grep special cases from the command line
16 August 2011
Continue reading Grep special cases from the command line

Grep special cases from the command line

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.

Post thumbnail of Recover files when lsof wont help you
3 June 2010
Continue reading Recover files when lsof wont help you

Recover files when lsof wont help you

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

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.

Post thumbnail of Grep IP addresses from ifconfig
5 February 2009
Continue reading Grep IP addresses from ifconfig

Grep IP addresses from ifconfig

Here’s a bunch of ways to get the ip addresses for all your network interfaces using ifconfig.

Powered by Wordpress   |   Lunated designed by ZenVerse