Search and replace through a whole directory tree


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. find . -type f -exec sed -i 's/STRING1/STRING2/' {} \;

URL: http://psykotical.blogspot.com/2009/02/bash-snippets.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.