Hacker News new | ask | show | jobs
by akkartik 5836 days ago
I often use vim for your python step. A sequence of 3 commands to convert opml to a file with feed urls, one on a line.

  :%!grep xmlUrl
  :%s/.*xmlUrl="//
  :%s/".*//
Edit: it relies on idiosyncracies about how google reader formats OPML, though.
1 comments

I considered using Vim at the time. The nice thing about doing it all on the command line is that it's repeatable and persistent. I have a huge shell history, and that command will now be in my history for months. I rely so heavily on my history that I'll often remember a related command from a month ago, find it, then modify it for my current use. :)
:) Yes I can relate. I started saving my shell logs in 2006 and one of my most commonly used commands is cmd_grep.

I'm now watching http://blog.extracheese.org/2010/04/a-raw-view-into-my-unix-.... I've ended up constructing my own vocabulary (column, freq, etc.) for most common uses of perl/awk in the commandline. http://akkartik.name/bash.html