sed:0と:を置き換える方法?

sed:0と:を置き換える方法?
sed -i s:group\:\:000::g  myfile 
/usr/local/bin/sed: -e expression #1, char 12: number option to `s' command may not be zero

group::000 文字列を空の文字列に置き換えたいです。 \でエスケープしようとしましたが、動作しません。

ベストアンサー1

group::000 文字列を空の文字列に置き換えたいです。

これは意味するs/group::000//g

この sed -i s/group::000//g myfile

これで問題が解決します。

おすすめ記事