sed replace in Mac OS X


/ Published in: Bash

Replaces string 'sth' with 'sth-new' in all files in current directory.


Copy this code and paste it in your HTML
  1. sed -i.backup -e 's/sth/sth-new/g' *

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.