Regular Expressions

Table of Contents

Regular Expression Operators reference

Print only the regex matched part howto

awk 'match($0, /regex/) { print substr($0, RSTART, RLENGTH) } ' file