LinuxQuestions.org
(
/questions/
)
-
Linux - General
(
https://www.linuxquestions.org/questions/linux-general-1/
)
- -
Awk Multiterm Match
(
https://www.linuxquestions.org/questions/linux-general-1/awk-multiterm-match-4175654936/
)
nikolaymartin
05-31-2019 04:07 PM
Awk Multiterm Match
I want to match multiple search terms in awk with a single command. How can i specify multiple search terms to math? Thanks.
teckk
05-31-2019 05:04 PM
Code:
awk '/one|two/{print $1}'
All times are GMT -5. The time now is
07:51 PM
.