3 ms·
Yes, I’ve seen the vertical bar character used for this too. But in my experience the comma character is more commonly used, and my point was that we should al
by teddyh 8y ago
Yes, I’ve seen the vertical bar character used for this too. But in my experience the comma character is more commonly used, and my point was that we should all try to use as commonly used syntax as possible. Therefore I encourage everybody to use the comma character as their usual alternative character in order for the world of Sed code to be slightly less confusing.
- ajross 8y agoMy experience, colored more by perl styles than sed per se, is that the vertical bar is the overwhelmingly typical usage, actually. It's what Wall picked for the examples in the camel book, for example.
- laumars 8y agoMy experience has been that there isn’t a de facto standard outside of /. Arguing that people must use some standard you’ve adopted is a little like saying people should use tabs instead of spaces.