Skip to content

Instantly share code, notes, and snippets.

View moxley's full-sized avatar

Moxley Stratton moxley

View GitHub Profile
@moxley
moxley / gfr.rb
Created August 30, 2012 21:43 — forked from sbecker/gfr.rb
Global find and replace with optional confirm (with colored diff)
#! /usr/bin/env ruby
# Save this file to somewhere in your PATH, like ~/bin/gfr, and chmod it with: chmod u+x gfr
require 'rubygems'
require "highline/system_extensions"
require 'colorize'
require 'optparse'
require 'ostruct'
include HighLine::SystemExtensions