Easier sed than done
sed seems to be one of the least used, and possibly most hated of the standard Unix utilities. But honestly, I think it gets a bad rap. Sure, it seems to have a steep learning curve, but vi did too when I first started. It's just that I use vi heavily, on a daily basis. Not so much sed. I must admit, my sed skills are sketchy at best. I can only produce meaningful sed scripts with a good reference, but it's often the best tool for the job.