On 2/25/06, Manav Kataria <manav@xxxxxxxxxxxxx> wrote:
so try
grep -i <your_keyword> `find ./ -maxdepth 1`
and please don't top post
thanks
MHD.Tayseer
Hi Mulyadi,
That doesn't print the file name. Though it does search. :-)
so try
grep -i <your_keyword> `find ./ -maxdepth 1`
and please don't top post
MHD.Tayseer
Mulyadi Santosa wrote:
> Hi Manav..
>
>
>> "How do you make grep search for a keyword in just the current
>> directory, including hidden files?"
>>
>
> I think this might work for that purpose:
> find ./ -maxdepth 1 -exec grep -i <your_keyword> {} \;
>
> regards
>
> Mulyadi
>
>
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive: http://mail.nl.linux.org/kernelnewbies/
> FAQ: http://kernelnewbies.org/faq/
>
>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/