h1ghlevelb1ts

Sed to the rescue again

Just a sed reminder to my future self. I needed to rename a method in some ruby code. Really simple with sed if you don’t have any name clashes:

sed -i 's/old_method/new_method/g' **/*.rb

and done. It bothers me that I had to look it up….

comments powered by Disqus