Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のストリームを削除したい
warning: the use of `mktemp' is dangerous, better use `mkstemp'
次のsed式を使用してみました:
sed \ -e '/mktemp\' is dangerous/D'
と
sed \ -e "/mktemp\' is dangerous/D"
しかし、何も機能しません。ストリームからその行を削除する正しい式は何ですか
試す
sed -e "/mktemp' is dangerous/D"
これを行う:
$ cat /tmp/in.txt foo bar warning: the use of `mktemp' is dangerous, better use `mkstemp' baz $ sed -e "/mktemp'/d" < /tmp/in.txt foo bar baz