Skip to content

Instantly share code, notes, and snippets.

@coffeencoke
Last active October 12, 2015 08:18
Show Gist options
  • Select an option

  • Save coffeencoke/3998621 to your computer and use it in GitHub Desktop.

Select an option

Save coffeencoke/3998621 to your computer and use it in GitHub Desktop.

Revisions

  1. coffeencoke revised this gist Sep 10, 2013. 3 changed files with 6 additions and 3 deletions.
    2 changes: 2 additions & 0 deletions command_line.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    # Just do it
    find . -type f -exec sed -i '' 's/from/to/g' {} \;
    3 changes: 0 additions & 3 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +0,0 @@
    :set autowrite
    :args **/*.rb
    :argdo %s/from/to/g
    4 changes: 4 additions & 0 deletions vim.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    # So that you can confirm each instance before replacing
    :set autowrite
    :args **/*.rb
    :argdo %s/from/to/gc
  2. coffeencoke created this gist Nov 2, 2012.
    3 changes: 3 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    :set autowrite
    :args **/*.rb
    :argdo %s/from/to/g