|
Grep Problem
Hi,
I want search all files containing some "searchtext" in current dir and sub dir. For this, I used
grep "searchtext" */*
This will search only in sub dir files and does not give results if file containing search text exists in current directory.
and
grep "searchtext" *
This will search only files current directory, not sub directories.
But when I use , following command . I get result.
find . | xargs grep "searchtext"
It searches at both current dir and sub dir .
How to achive this using grep command .
thanks
|