Skip to content

Instantly share code, notes, and snippets.

@domitry

domitry/hoge.sh

Last active Aug 29, 2015
Embed
What would you like to do?
ruby -e "(lambda{|r| Dir::entries(r).select{|s| s.match(/(.+).cpp/)}.each{|n| File.join(root, name).tap{|path| File.write(path, open(path).read.gsub('old_name', 'new_name'))}}}).call('path_to_parent_directory')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment