If you’ve never used Awk before, here’s a small introduction to it with a worked example.
Just waiting for the sed script that does the same now 🙂
If you’ve never used Awk before, here’s a small introduction to it with a worked example.
Just waiting for the sed script that does the same now 🙂
By continuing to use the site, you agree to the use of cookies. more information
The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.
Well, you probably could do it in sed, but there’s a reason both sed and awk are available, and that’s because they work well together and are fairly complementary. In fact, the best book, is the ORA sed & awk book. Of course everything you can do with them can be done with perl, so if you grok that, use perl instead, but for some of us old coots, perl is still a write-only language, so….
I tend to agree – I often find I end up using both on the same one-liner.