sed replace in Mac OS X

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

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


RSS Icon Subscribe to comments

You need to login to post a comment.