💻 Software
How is \$ being interpreted by grep?
Fresh5 days ago
Mar 15, 202614894 viewsConfidence Score0%
0%
Problem
When I write then whatever I type on terminal, is matched and printed on terminal. How is being interpreted?
Error Output
$ grep \$
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How is \$ being interpreted by grep?
Low Risk
The shell is interpreting the and passing it through to grep as , the end of line character. So assuming your line has an end, it will match :-) If you want to match an actual in grep, use one of: In the former, the shell interprets as and as , givi…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix