AWK text-processing language is useful for such tasks as:
- Tallying information from text files and creating reports from the results.
- Adding additional functions to text editors like "vi".
- Translating files from one format to another.
- Creating small databases.
- Performing mathematical operations on files of numeric data.
仔细想想,在编程的过程中,遇到的最多的问题还是字符串,不管是分析字符中、变换字符串,还是别的什么。在LINUX下,有许多处理字符串的语言和工具,比如PERL,SED,AWK等。这次就从AWK开始,毕竟,学习它是很容易的。
抽出几个小时来学一下吧,这里是一个很好的开始:http://www.vectorsite.net/tsawk.html