Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
awk '[navy]$1[/navy][teal]~[/teal][fuchsia]/^(AA|BB|CC)$/[/fuchsia]' /input/file
grep -x 'AA\|BB\|CC' /input/file
[gray]# or[/gray]
grep -xE 'AA|BB|CC' /input/file
From where are those values coming ? If happens to have them in a file, one value per line, [tt]grep[/tt] is even more comfortable :joseph said:(sometimes more than 10 values).
grep -Fxf /file/with/values /input/file
grep '^\(AA\|BB\|CC\)\s' /input/file
[gray]# or[/gray]
grep -E '^(AA|BB|CC)\s' /input/file
grep '^\s*\(AA\|BB\|CC\)\s' /input/file
[gray]# or[/gray]
grep -E '^\s*(AA|BB|CC)\s' /input/file