Open main menu

CDOT Wiki β


Tutorial11: Sed & Awk Utilities

14 bytes added, 17 March
Using the sed Utility
* 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