Changes

Jump to: navigation, search

Tutorial11: Sed & Awk Utilities

1 byte added, 09:19, 4 March 2021
Using the awk Utility
* You can use parameters 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''','''$3''' … '''$9''' represent the first, second and third to the 9th fields contained within the record.
* Parameters greater than nine requires the value of the parameter to be placed within braces (for example: '''${10}''','''${11}''','''${12}''', etc.)
* There are built-in variables that can be used in the awk expression (for example: '''NR''', '''NF''', '''FILENAME''', etc.)
13,420
edits

Navigation menu