Changes

Jump to: navigation, search

Tutorial11: Sed & Awk Utilities

297 bytes added, 10:09, 4 March 2021
Using the awk Utility
* Action to be executed is contained within braces '''{}'''
* The '''print''' command can be used to display text (fields).
* You can use parameters like '''which represent fields within records (lines) within the expression of the awk utility.�* The parameter $0 represents all of the fields contained in the record (line).�* The parameters $1''', '''$2''' to ,$3 … $9 represent the first field, second field, etcand third to the 9th fields contained within the record. * The Parameters greater than nine requires the value of the parameter '''$0''' represents ALL fields to be placed within a record braces �(linefor example: ${10},${11},${12}, etc.).���
* You can use the '''-F''' option with the awk command to specify the field delimiter.
13,420
edits

Navigation menu