I have file
with
denm.xyz
denm.abc
denm.def
denm_xyz
denm_abc
denm_def
I want to extract the ones with .
in it.
I tried
grep "denm\.*" file
grep 'denm\.*' file
sed "/denm\.*/p" file
sed '/denm\.*/p' file
These things are matching everything in the file
However using awk
awk '/denm\./' file
worked!!
How do I do same using grep
or sed