13,420
edits
Changes
→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