strange behaviour of grep in UNIX
- by Happy Mittal
When I type a command
$ grep \\h junk
then shell should interpret \\h as \h as two pairs of \ become \ each,
and grep in turn, should interpret \h as \h as \ becomes \, so grep should
search for a pattern \h in junk, which it is doing successfully.
But it's not working for \\$. Please explain why ?