sed -i
changes the content of a file without creating a backup. sed -i s/PAT/REPL/ /path/to/file
-i
is followed by a suffix, a corresponding backup is created before the file is edited. /path/to/file.bak
and modifies /path/to/file
. sed -i.bak s/PAT/REPL/ /path/to/file