( in sed replace command code example Example: replace using sed #on my mac sed -i -e 's/old-text/new-text/g' text.txt