接触到awk已经有好几年了,但是一直只是了解一些皮毛,经常碰到一些情况挺抓狂。之前也尝试着系统学习一下,但是许多的教程要不太简单,要么写得不那么好理解。最近终于找到一个很好的awk教程,把awk主要的一些东西讲得非常清晰。提供了通过许多的例子,简洁明了。
Exercise #1: Learning awk Basics
Exercise #2: Learning awk with Operators
Exercise #3:Using awk with Print and Printf
Exercise #4: Starting with awk Scripts
Exercise #5: Managing the Structure of the awk file
Exercise #6: Set Variables in Scripts
Exercise #7: Multiple Field Separators
Exercise #8: Counting and Sums with awk
Exercise #9: Output/Input Redirection With awk