Skip to content

Instantly share code, notes, and snippets.

@countless-integers
Created May 2, 2016 07:57
Show Gist options
  • Save countless-integers/6d968e62d11b8806e0b7f80e0ddfc8e5 to your computer and use it in GitHub Desktop.
Save countless-integers/6d968e62d11b8806e0b7f80e0ddfc8e5 to your computer and use it in GitHub Desktop.
refactoring aid [WIP]
#!/bin/bash
ag -l '$1' | xargs -I{} sed -ibak 's/$1/$2/' {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment