I am trying to clean in Textmate some articles I downloaded from Factiva, before I send them to my Sony Reader. I created a command in the Bundle Editor to remove blank lines:
sed /^$/d
It works, but now I want to add a new twist and remove blank lines, as well as lines that contain a single space. I tried the following but it does not work:
sed /^$/d
sed /^\s$/d
Any idea?
sed /^$/d
It works, but now I want to add a new twist and remove blank lines, as well as lines that contain a single space. I tried the following but it does not work:
sed /^$/d
sed /^\s$/d
Any idea?