Changes

Jump to: navigation, search

Tutorial11: Sed & Awk Utilities

4 bytes removed, 08:01, 17 March 2021
Using the awk Utility
* You can combine any of the patterns using the Boolean operators '''||''' (OR) and '''&&''' (AND).
* You can use built-in variables (like NR or "record number" representing line number) with comparison operators.<br>For example: '''NR >=1 && NR <= 5'''
<br>
'''Action (execution):'''
* 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 "record number" �representing 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