Is there a `grep`-like utility to match strings instead of lines?
Fresh3 days ago
Mar 15, 2026279 viewsConfidence Score0%
0%
Problem
I'm using grep to extract lines that match a regular expression. How to get only the matches and not the whole line?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Is there a `grep`-like utility to match strings instead of lines?
Low Risk
You can supply grep the option. Like such: (Hint: The mnemonic I use for this is: omit everything except match)
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix