Changes

Jump to: navigation, search

Tutorial11: Sed & Awk Utilities

34 bytes removed, 09:01, 17 March 2021
Using the awk Utility
* 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 builtYou can use built-in variables that can be used in the awk expression (for example: '''NRvariables''', '''NF (like NR or "record number" �representing line number<br>eg. '''{print NR, $0}'''FILENAME''' (will print record number, etc.then entire record)* You can use the '''-F''' option with the awk command to specify the field delimiter.��
=INVESTIGATION 1: USING THE SED UTILITY=
13,420
edits

Navigation menu