13,420
edits
Changes
→Using the awk Utility
*If no pattern is specified, awk selects all lines in the input
*If no action is specified, awk copies the selected lines to standard output
'''Patterns:'''
*Regular Expressions��You can use a regular expression, enclosed within slashes, as a pattern.
*The ~ operator tests whether a field or variable matches a regular expression
*The !~ operator tests for no match.
*You can perform both numeric and string comparisons using relational operators
*You can combine any of the patterns using the Boolean operators �|| (OR) and && (AND).
=INVESTIGATION 1: USING THE SED UTILITY=