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
You might also like
- Dirty Baby – requires Flash, t …
Dirty Baby - requires Flash, thanks Gearoid for the link.- The site was down this morning..
This weblog was out of service for a while, but- Data Recovery from a Hard Disk
Some of you may remember my bad luck with hard
If you like this post then please subscribe to my full RSS feed. You can also click here to subscribe by email. There are also my fabulous photos and funny videos to explore too!

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.