Changes

Jump to: navigation, search

Tutorial11: Sed & Awk Utilities

56 bytes added, 10:55, 4 September 2020
Using the awk Utility
'''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 ''''''!~''''''Bold text'''''' 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)
*You can use '''built-in variables ''' (like '''NR''' or "record number" representing line number) with comparison operators
[[Image:awk.png|thumb|right|300px|Operators '''Comparison operators''' used with the '''awk''' command.]]
'''Patterns: Relational Operators'''
13,420
edits

Navigation menu