Changes

Jump to: navigation, search

Tutorial11: Sed & Awk Utilities

266 bytes removed, 09:58, 4 March 2021
Using the awk Utility
'''NotesHow It Works:'''
*The awk command reads '''all lines in the input file''' and will be exposed to the expression (contained within quotes) for processing.*Expression The expression (contained in quotes) represents selection criteria, and �and action to execute (contained within braces) if {}* If selection criteria is matched *If no pattern is specified, awk selects all lines in the input*If no then action (between braces) is specified, awk copies the selected lines to standard output*You can use parameters like '''$1''', '''$2''' to represent first field, second field, etc.*You can use the '''-F''' option with the awk command to specify the field delimiter.executed
13,420
edits

Navigation menu