5 ms·
To be honest I don't know how much he has improved on the manual. It is such a small language that you could easily read up to the the examples very quickly eve
by c3RlcGhlbnI_ 12y ago
To be honest I don't know how much he has improved on the manual. It is such a small language that you could easily read up to the the examples very quickly even if you aren't particularly interested in learning.
I would suggest just giving it a look directly at https://www.gnu.org/software/sed/manual/sed.html https://www.gnu.org/software/sed/manual/sed.html
Though be forewarned, something that neither document explains well is the actual syntax. As in how addresses and expressions can be used and how to read a script. The syntax is relatively simple to understand looking at some examples, but the lack of clear delimiters between the address, command, and command parameters can confuse beginners.
- josteink 12y agoBut that only covers the GNU bits. If you stick (too closely) to that one, sometimes you might use features only found in GNU Sed and think you're writing portable scripts. I think this tutorial helps clarify what is and isn't portable.
- c3RlcGhlbnI_ 12y agoWell, it does mention explicitly which parts are GNU extensions. But I see what you mean. I can write sed scripts fairly well at this point but clearly didn't internalize any of the notes about what is an extension, thus it is frustrating trying to get the non GNU versions to do anything at all.