July 11, 2007

Too Lazy For sed

sed and awk are powerful command line tools. There have been many times when they've done a great job of providing me the information I needed when I needed it.. The problem is that I can never remember the syntax or usage for exactly what I want to do, which is always pretty basic.

Today, I stumbled across PyLine which allows me to use python syntax for grabbing the information I need from any file I have. Since this morning when I put it in my $HOME/bin folder, I've used it twelve times, 13 if you count my history and using pyline with grep and wc -l to filter out my count. Take PyLine for a spin, and leave that other stuff for the heavy lifting.

Tagged as: python sysadmin tools