Skip to content

Instantly share code, notes, and snippets.

@icaoberg
Created August 27, 2012 18:42
Show Gist options
  • Save icaoberg/3491237 to your computer and use it in GitHub Desktop.
Save icaoberg/3491237 to your computer and use it in GitHub Desktop.
Find and replace string across multiple files
#!/bin/bash
find . -name "*.m" -exec sed -i 's/\/home\/icaoberg\/cellorganizer-matlab-master/\/home\/icaoberg\/projects\/cellorganizer\/matlab/g' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment