I wasn't exactly sure how the one sed command would work - some of them were actually dependant on the earlier ones being completed, which is why I did it the way I did.
I also just like pipes. I'm sure it would make things slower, but since this entire block took appoximately no time at all to do, I wasn't concerned about that.
The CSS I left, since I wasn't sure how older browsers treated the #abc type, and I have no idea what kind of browsers people will look at it with.
But this is the first time I've ever used sed, so the fact that it WORKED made me pretty happy :)
Re: sed
I also just like pipes. I'm sure it would make things slower, but since this entire block took appoximately no time at all to do, I wasn't concerned about that.
The CSS I left, since I wasn't sure how older browsers treated the #abc type, and I have no idea what kind of browsers people will look at it with.
But this is the first time I've ever used sed, so the fact that it WORKED made me pretty happy :)