Changes

Jump to: navigation, search

Tutorial11: Sed & Awk Utilities

10 bytes added, 08:02, 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.)
* You can use built-in '''variables''' (like NR or such as '''NR''' or "record number" representing line number)<br>eg. '''{print NR,$0}''' (will print record number, then entire record).
=INVESTIGATION 1: USING THE SED UTILITY=
13,420
edits

Navigation menu