dear all,
the command
>sed s/m/x/g
works on my box OK. But adding '-n'
>sed -n s/m/x/
makes it to output blank lines even after those containing "m's"
How to understand this deviation from a tutorial predictions?
With -n [tt]sed[/tt] produce no default output. If you want it to write something, you must tell it, for example with the [tt]p[/tt] ( print ) command.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.