I’ve been experimenting with getting regular expression patterns to match over multiple lines using sed. For example, one might want to change
<p>previous text</p>
<h2>
<a href="http://some-link.com">A title here</a>
</h2>
<p>following text</p>
to
<p>previous text</p>
No title here
<p>following text</p>
sed cycles through each line of input one line at a time, so the most obvious way to match a pattern that extends [...]
I like to know how to use the command line for everything I can. Here are the tools and commands I use to make mp3s.
First, I rip from the CDROM to a wav file.
cdparanoia 1 prokofiev1.wav
cdparanoia lets me specify the input device, but I don’t need to, since the default—/dev/cdrom—is what I [...]
September 7, 2006 – 12:43 pm
Apparently there are four million of us Ubuntu users (I’m assuming they’re including Kubuntu in the mix). That sounds like a lot, until you realize that it’s only about 2/3 the number of Windows computers that are zombies.
Yesterday I upgraded my main computer from Kubuntu 5.10 (Breezy Badger) to 6.06 (Dapper). It’s probably one of the most painless upgrades of any that I’ve done: I few lines changed and typed, and apt-get does it all.
Today I dropped in on Boston’s LinuxWorld Expo. I was surprised at how few attendees there were; maybe it had to do with today’s being the last day of the conference. Those at the booths seemed a little desperate to get rid of their free t-shirts and pens.
I’m probably naïve to think this odd, [...]
March 21, 2006 – 10:58 pm
I complained last week that there’s no Flash for Linux 64-bit. Ziobudda asked why I didn’t just install the 32-bit Firefox. Why not? I couldn’t think of any good reason. So here’s how I did it.
First of all, I wanted to use yum so I could avoid all dependency issues [...]