Editing Stream like Merlin The Mighty with Sed

We already talk about Vim a couple of time. Let’s move to sed. Sed is a stream editor (we already know that) that I used today. This is the case, I have some file (php file) which is badly written by someone (maybe for pissing me off) by changing some characters on it. Let’s say they change *.php into .rrrr wherever possible. It’s not a big deal if the file is only have a few lines, but imagine if it has 2000 lines and I should edit every . [Read More]