The parameter -iis a GNU extension (non-standard) for the command sed. This was not part of the classic interface sed.
You cannot edit in situ directly on AIX. You should make the equivalent of:
sed 's/this/that/' infile > tmp.$$
mv tmp.$$ infile
You can process only one file at a time, and the parameter -iallows you to get the result for each of the many files in the argument list. The option -isimply packs this sequence of events. This is undoubtedly useful, but it is not standard.
script, , , ; , . - :
tmp=tmp.$$
for file in "$@"
do
trap "rm -f $tmp; exit 1" 0 1 2 3 13 15
sed 's/this/that/' $file > $tmp
trap "" 0 1 2 3 13 15
mv $tmp $file
done
, sed (HUP, INT, QUIT, PIPE TERM). sed , , mv.
, , , , , .
(sed 's/this/that' ) . !
overwrite (shell), " UNIX" .