Changes

Jump to: navigation, search

Tutorial11: Sed & Awk Utilities

222 bytes added, 10:20, 4 September 2020
no edit summary
'''<span style="color:blue;font-weight:bold;font-family:courier;">Syntax: sed [-n] 'address instruction' filename</span>'''
'''Note:'''
 
*The sed command reads '''all lines in the input file''' and will be exposed to the expression (contained in quotes).
* If the line matches the '''address''', then it will perform the '''instruction'''.
'''Address:'''
'''Note:'''
*The awk command reads '''all lines in the input file ''' and will be exposed to the expression (contained within quotes) for processing.
*Expression (contained in quotes) represents selection criteria, and action to execute (contained within braces) if selection criteria is matched
*If no pattern is specified, awk selects all lines in the input
13,420
edits

Navigation menu