awk match whole word
Fresh3 days ago
Mar 15, 202619964 viewsConfidence Score0%
0%
Problem
I want to use to match whole words from text file. Including words bounded by non alphanumeric characters. For example - string to search for - ABC Source file - Result -
Error Output
HHHABCCCCH HHH ABC HH(ABC)ASDAASD HH,ABC-ASASDASD
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: awk match whole word
Low Risk
If you want to pass "ABC" as a variable instead of hardcoding it, use the matching operator: With gawk (other awks too?) you can use and to denote word boundaries, where a word is a sequence of letters, digits and underscore (I believe), so this wil…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix