Open main menu

CDOT Wiki β

Changes

Tutorial11: Sed & Awk Utilities

14 bytes added, 07:53, 17 March 2021
Using the sed Utility
'''Address:'''
* Can use a line number, to select a specific line (for example: '''5''')* Can specify a range of line numbers (for example: '''5,7''')* Regular expressions are contained within forward slashes�slashes (e.g. /regular-expression/)* Can specify a regular expression to select all lines that match�a match a pattern (e.g '''/^[0-9].*[0-9]$/''')
* If NO address is present, the instruction will apply to ALL lines
13,420
edits