Skip to content

Instantly share code, notes, and snippets.

@arkiver
Last active March 22, 2016 19:12
Show Gist options
  • Save arkiver/b2b7ee6b068eb32e38d4 to your computer and use it in GitHub Desktop.
Save arkiver/b2b7ee6b068eb32e38d4 to your computer and use it in GitHub Desktop.
Replace all occurrences of and with && in all ruby files in current directory
perl -pi -w -e 's/ and/ &&/g;' *.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment