
Sed & awk
by Dale Dougherty, Arnold Robbins · first published 1990
50% recommend50% neutral
<i>sed & awk</i> describes two text processing programs that are mainstays of the UNIX programmer's toolbox.<i>sed</i> is a "stream editor" for editing streams of text that might be too large to edit as a single file, or that might be generated on the fly as part of a larger data processing step. The most common operation done with <i>sed</i> is substitution, replacing one block of text with another.<i>awk</i> is a complete programming language. Unlike many conventional languages, <i>awk</i> is "data driven" -- you specify what kind of data you are interested in and the operations to be perf
Affiliate links. As an Amazon Associate I earn from qualifying purchases.







Same as usual, read every book about it![0] and don't try to learn from the man page. I think the original book by A, W and K (the 2nd edition anyway) was best. Also Arnold Robbins' books Sed and Awk and Effective AWK Programming are great. The GNU Awk User's Guide[1] is amazingly detailed, but the new AWK has bloated a lot, has 1000 features where the older one had a few dozen, and those core ones…
on “Problem solving with Unix commands” ↗A copy: http://gen.lib.rus.ec/book/index.php?md5=0AD0779BF3602F1EA22... Also Arnold Robbins' books Sed and Awk and Effective Awk Programming are excellent, and also detail the many features added since the latest edition of The AWK Programming Language (1988). http://gen.lib.rus.ec/search.php?&req=awk+robbins&sort=year&...
on “Learn Just a Little Awk (2010)” ↗The O'Reilly Sed & Awk book is a lot of fun, too. http://shop.oreilly.com/product/9781565922259.do
on “An Awk Primer” ↗UNIX Power Tools by O'Reilly is a text I strongly recommend for this. It's a sort of hardcopy hypertext narrative through a number of command-line and terminal-focused tools. Parts of it are dated now (it's ... gasp, 22 years since its first edition), but since it's one of those books based on UNIX philosophy it's aged quite well. It, Linux in a Nutshell, the Sed & AWK book, are still a pretty
on “An Awk Primer” ↗I'm juggling several books currently: 1. Computer Networking: A Top-Down Approach 6th Edition. 2. TCP/IP Illustrated, Vol. 1 2nd Edition. 3. Interconnections: Bridges, Routers, Switches, and Internetworking Protocols 2nd Edition. 4. Engineering a Compiler 2nd Edition. 5. Flex & Bison. 6. Sed & Awk. 7. K & R. 8. The Unix Programming Environment. 9. Advanced Programming in the UNIX Environment. 10.
on “Ask HN: What technical books are you reading?” ↗My introduction to roff and co. as a typesetting system was the 1997 edition of Dale Dougherty and Arnold Robbins's Sed & Awk. Many of the book's examples are geared toward automatically inserting/correcting roff macros. I can't recall a specific example from the book, but it would be something like "insert the roff 'section' macro on matches of `/^CHAPTER/`." Ultimately, it's probably not practi
on “Beautiful Documents with Groff (Part I)” ↗The best way to learn the UNIX tools is in the context of shell scripting and using the combination of tools to achieve a purpose (such as parsing log files, setting up shortcuts as part of your dev toolchain) 1. Understand the philosophy behind UNIX. ie. everything is a file and it is small apps that are very good at a single task that can be combined through pipes etc. to process larger tasks (
on “Must Read CS Books For Self Self-Taught Programmers” ↗