Posted By

ef on 02/12/13


Tagged

mac replace sed


Versions (?)

sed replace in Mac OS X


 / Published in: Bash
 

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

  1. sed -i.backup -e 's/sth/sth-new/g' *

Report this snippet  

You need to login to post a comment.