>>624
$ sed --version
sed (GNU sed) 4.2.2

$ cat foo.txt
123abc

$ sed -i 's/123//' foo.txt
$ cat foo.txt
abc

BSD版のsed不便じゃないの?