Quote:
Yes I tried with doublequotes. Not worked.
|
Seems to work just fine for me:
Code:
$ cat file
drwxr-xr-x 2 root root 4096 Feb 2 11:23 79
drwxr-xr-x 2 root root 4096 Feb 12 11:11 8
$ a=Feb
$ b=2
$ egrep "$a +$b" file
drwxr-xr-x 2 root root 4096 Feb 2 11:23 79