今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Working with records, fields, patterns, and actions - Linux教程
课程: AWK Essential Training
Working with records, fields, patterns, and actions
- Awk looks at its input as a series of records. Each record consisting of a series of fields. By default each record is a line of text and each field is separated from the next by white space. One or more spaces and or tab characters. So for example this file Duke of York dot text has eight records with six fields in the first record five in the second and so on. Like most Unix command line tools awk works best with text files rather than binary files like Microsoft Excel XLS files or Microsoft Word doc files. If you have data in a binary format and would like to manipulate it with AWK, you will usually have to export it into a text format using the original program that produced it. Awk uses a dollar sign followed by a number to denote each field. For example if you wanted to print the third field of each line in that file you would use the command awk print dollar three Duke of York dot text. So here we see the third…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。