Open main menu

CDOT Wiki β

Changes

Tutorial11: Sed & Awk Utilities

219 bytes added, 07:59, 17 March 2021
Using the awk Utility
'''How It Works:'''
* The '''awk ''' command reads all lines in the input file and will be exposed to the expression (contained within quotes) for processing.* The '''expression ''' (contained in quotes) represents '''selection criteria''', and �and '''action ''' to execute contained within braces '''{}'''* If if selection criteria is matched, then action (between braces) is executed.* The '''–F''' option can be used to specify the default '''field delimiter''' (separator) character<br>eg. '''awk –F”;”''' (would indicate a semi-colon delimited input file)�<br>
'''Selection Criteria'''
13,420
edits