I am facing an issue on my windows machine with Cygwin in it.
On one of my machine grep exact string match using
$ ipconfig /all | grep -A 1 'My Ethernet Server Adapter B52-2$' Description . . . . . . . . . . . : My Ethernet Server Adapter B52-2 Physical Address. . . . . . . . . : ##-##-##-##-##
grep version on this machine is:
$ grep -V GNU grep 2.6.3
However the same does not work on my other machine having
$ ipconfig /all | grep -A 1 'My Ethernet Server Adapter B52-2$'
grep version on this machine:
$ grep -V grep (GNU grep) 3.0
If I remove
$ from the above command I get the results, but I want the exact string match.
Can someone please help me out here?
Thanks in advance!!
Edit: I have already tried
grep -o, but could not get the expectced answer