我听说过《The Awk Programming Language》,但我手头只能拿到 Arnold Robbins 写的《The GNU Awk User's Guide》,因为在我的 Linux 机器上有 Info 格式的手册。网上也有免费的 https://www.gnu.org/software/gawk/manual/gawk.html 这是一本很不错的书,能教你两种技巧……
I've heard about _The Awk Programming Language_ but could get my hands only on _The GNU Awk User's Guide_ by Arnold Robbins, since it's available as Info pages on my Linux box. It's also free online https://www.gnu.org/software/gawk/manual/gawk.html It's a pretty good book which teaches you both techniques…
……而且别想着用 man page 来学。我认为 A、W 和 K 原班人马写的原版书(反正第二版最好)是最棒的。另外 Arnold Robbins 写的《Sed and Awk》和《Effective AWK Programming》也很不错。《The GNU Awk User's Guide》[1] 极其详尽,但新版 AWK 膨胀得厉害,老版只有几十个特性,它却加了1000个功能,而核心的那几个才应该最先学。(但人们仍然喜欢用它编程……
…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 should be learnt first. (But people still like programming with…
GNU AWK User's Guide is reasonably succinct, while being fairly comprehensive. https://www.gnu.org/software/gawk/manual/gawk.html The manpage alone is quite useful, though lacks some useful details. The awk FAQ provides…
…but should be generally accurate.) That parses records based on blank lines, into fields based on lines, splitting the fields into individual data recoreds based on ": " as a regex. For more, see the GNU Awk User's Guide: https://www.gnu.org/software/gawk/manual/html_node/Multiple-...
我发现了 awk 里的分页处理方式,这对解析 PDF 简直是神器。参见:https://news.ycombinator.com/item?id=22156456 在《GNU Awk User's Guide》中:https://www.gnu.org/software/gawk/manual/html_node/Multiple-... 跨分页追踪列宽和字段宽……很有意思,但也更容易处理了。
I've discovered page-oriented processing in awk, which is a godsend for parsing PDFs. See: https://news.ycombinator.com/item?id=22156456 In the GNU Awk User's Guide: https://www.gnu.org/software/gawk/manual/html_node/Multiple-... Tracking column and field widths across page breaks is ... interesting, but more tractable.
我听说过《The Awk Programming Language》,但我手头只能拿到 Arnold Robbins 写的《The GNU Awk User's Guide》,因为在我的 Linux 机器上有 Info 格式的手册。网上也有免费的 https://www.gnu.org/software/gawk/manual/gawk.html 这是一本很不错的书,能教你两种技巧……
I've heard about _The Awk Programming Language_ but could get my hands only on _The GNU Awk User's Guide_ by Arnold Robbins, since it's available as Info pages on my Linux box. It's also free online https://www.gnu.org/software/gawk/manual/gawk.html It's a pretty good book which teaches you both techniques…
……而且别想着用 man page 来学。我认为 A、W 和 K 原班人马写的原版书(反正第二版最好)是最棒的。另外 Arnold Robbins 写的《Sed and Awk》和《Effective AWK Programming》也很不错。《The GNU Awk User's Guide》[1] 极其详尽,但新版 AWK 膨胀得厉害,老版只有几十个特性,它却加了1000个功能,而核心的那几个才应该最先学。(但人们仍然喜欢用它编程……
…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 should be learnt first. (But people still like programming with…
虽然多少有点偏重 GAWK,但《The GNU Awk User's Guide》确实非常优秀。http://www.gnu.org/software/gawk/manual/gawk.html
While somewhat specific to GAWK, the GNU Awk User's Guide is excellent. http://www.gnu.org/software/gawk/manual/gawk.html
《GNU AWK User's Guide》在做到相当全面的同时还算言简意赅。https://www.gnu.org/software/gawk/manual/gawk.html 单看 manpage 也挺管用,但缺少了一些有用的细节。awk FAQ 提供了……
GNU AWK User's Guide is reasonably succinct, while being fairly comprehensive. https://www.gnu.org/software/gawk/manual/gawk.html The manpage alone is quite useful, though lacks some useful details. The awk FAQ provides…
……不过大体上应该没差。)它是根据空行来解析记录,根据行来拆分成字段,然后用 ": " 作为正则把字段拆分成单独的数据记录。欲知更多详情,请参见《GNU Awk User's Guide》:https://www.gnu.org/software/gawk/manual/html_node/Multiple-...
…but should be generally accurate.) That parses records based on blank lines, into fields based on lines, splitting the fields into individual data recoreds based on ": " as a regex. For more, see the GNU Awk User's Guide: https://www.gnu.org/software/gawk/manual/html_node/Multiple-...
我发现了 awk 里的分页处理方式,这对解析 PDF 简直是神器。参见:https://news.ycombinator.com/item?id=22156456 在《GNU Awk User's Guide》中:https://www.gnu.org/software/gawk/manual/html_node/Multiple-... 跨分页追踪列宽和字段宽……很有意思,但也更容易处理了。
I've discovered page-oriented processing in awk, which is a godsend for parsing PDFs. See: https://news.ycombinator.com/item?id=22156456 In the GNU Awk User's Guide: https://www.gnu.org/software/gawk/manual/html_node/Multiple-... Tracking column and field widths across page breaks is ... interesting, but more tractable.