I want to grep a variable excluding those that start with a dot sign. However choosing the -w option for entire word doesn't include a dot sign so instead of only selecting 4 55 48 it also selects 0.4 0.55 5.48.

e.g. $var=1565

input 

```
A 3.00027 1565    
B 3.00026 1565    
C -1.1565 5000 

```

desired output

```
A 3.00027 1565    
B 3.00026 1565

```

I have seen solutions to `grep` for an exact pattern starting with grep, but that doesn't work with a variable.

I have tried adding a space sign before the variable as in lines below but it doesn't give desired output either.

```
grep -E -w " $var" input.txt > output.txt #results in empty output
grep -E -w "[:space:]|$var" input.txt > output.txt # gives solutions that include the dot sign

```