I am running a command to search certain string in a folder but it halts when it encounters file with no extension.
sudo grep -rlvF "peter.dickson@" /var/www
how I can overcome this?
As per the suggestion in the comment I have run this command
pawan@server1:~$ sudo find /var/www -type p
[sudo] password for pawan:
pawan@server1:~$
But I didn't get any output from this command.
It seems that what you want is
The effect of xargs is that The outputs of find (all normal files under the path you provide) are passed as final arguments to the grep command (after the initial arguments provided).
Edit: the period is a special character for grep, so it should be escaped by preceding it with a backslash, as shown.