[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: something regards "find"



On 12/29/11, lina <lina.lastname@gmail.com> wrote:
> Hi,
>
> I don't know how to find one file out,
>
> one file contains some numbers, like
>
> 7.9 2.4 4.2 12.2 and etc
>
> I can't remember the file name. I tried:
>
> $ grep -e "7.9" -e "2.4" -e "4.2" -e "12.2" */*
>
> $ grep -e "7.9" -e "2.4" -e "4.2" -e "12.2" */*/*
>
> not work,
>
> Thanks with best regards,


Is that all deep you want to go?  You can use "-r" (man grep) for
recursive, in case it's found deeper, and just provide the common root
to all directories...

-- 
Javier.


Reply to: