Thursday, December 19, 2013

Removing Blank Lines

Here's a handy one-liner to remove blank lines from a file.
Breaking this down. The "g" will execute a command on lines that match a regular expression. The regular expression matches blank lines, and the command is "d" (delete).

Friday, December 13, 2013


I'm not sure what utility this provides, but it's a pretty darn cool hack. Kudos to Lu Wang for this Javascript port of Vim.