I was reading this tutorial on SED (http://www.grymoire.com/Unix/Sed.html#uh-0
) where it says that sed is line-oriented and that if you run sed 's/one/ONE/' <file
, the change would only occur ONCE on a line.
The thing is, when I tested it, it changed every single occurrence on the whole line.
Why is that?