simple sed -i problem
$ sed -i 's/testing123/localhost/g' testing123.txt
sed: 1: "testing123.txt": undefined label 'esting123.txt'
The -i switch appears to not work correctly in 10.6.1. From man sed : "If a zero-length extension is given, no backup will be saved". However currently if a zero-length extension is given sed fails. If an extension is given, then sed will work properly:
$ sed -i .backup 's/testing123/localhost/g' testing123.txt
$
sed: 1: "testing123.txt": undefined label 'esting123.txt'
The -i switch appears to not work correctly in 10.6.1. From man sed : "If a zero-length extension is given, no backup will be saved". However currently if a zero-length extension is given sed fails. If an extension is given, then sed will work properly:
$ sed -i .backup 's/testing123/localhost/g' testing123.txt
$
uMBP-17 3Ghz, Mac OS X (10.6)