In the BSD version of sed
used on the Mac, the -i
option requires an argument containing the suffix to use for the backup file. If you don't want to create a backup file, you have to provide an empty argument:
sed -i '' 's/instance=ge/blah/g' 100usr_defSemaAvail_mult_12hr.jmx
The command you entered specified s/instance=ge/blah/g
as the suffix, and 100usr_defSemaAvail_mult_12hr.jmx
as the editing commands.
This is different from GNU sed
used on Linux, which expects the suffix to be attached to the -i
option (e.g. -i.bak
). So -i
by itself means no backup file.