Open main menu

CDOT Wiki β

Changes

Tutorial11: Sed & Awk Utilities

8 bytes removed, 09:00, 4 March 2021
Using the awk Utility
'''Selection Criteria'''
* You can use a regular expression, enclosed within slashes, as a pattern. ��For For example: '''/pattern/'''* The ~ operator tests whether a field or variable matches a �regular regular expression.��For For example: '''$1 ~ /^[0-9]/'''
* The !~ operator tests for no match.��For example: $2 !~ /line/
* You can perform both numeric and string comparisons using �relational operators ( > , >= , < , <= , == , != ).
13,420
edits