LoginSignup
4
4

More than 5 years have passed since last update.

sed | sed -> sed -e '' -e ''

Posted at
$ echo a | sed 's/a/b/' | sed 's/b/c/'
c
$ echo a | sed -e 's/a/b/' -e 's/b/c/'
c

下の方が好みなんだけど、動作が微妙に違ったりとかするのかな。多分、変わらないと思うんだけど。

4
4
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4