This post originated from an RSS feed registered with Agile Buzz
by Piergiuliano Bossi.
Original Post: replacer.rb and deleter.rb
Feed Title: The thinking box
Feed URL: https://thinkingbox.wordpress.com/feed/
Feed Description: The thinking box is mumbling about XP, agile, design, java, ruby, software engineering, testing, TDD, Fitnesse, etc.
From time to time I find myself needing to replace certain strings globally (eg: in a directory tree), or deleting lines based on a match. I find sed extremely annoying and I don't manage to get around its syntax. So ruby comes in handy!