Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Oct 2001 08:05:22 -0500
From:      Lucas Bergman <lucas@slb.to>
To:        "Toomas Aas" <toomas.aas@raad.tartu.ee>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: finding files containing specific text
Message-ID:  <15318.48274.561205.271382@apu.five.sight>
In-Reply-To: <200110241256.f9OCuB801980@lv.raad.tartu.ee>
References:  <200110241256.f9OCuB801980@lv.raad.tartu.ee>

next in thread | previous in thread | raw e-mail | index | archive | help
> Somewhere in my /home directory there are some files containing text
> 'starfish'.
> 
> How can I get a list of all files in the /home directory and its
> subdirectories that contain the text 'starfish'?

  $ find ~ -type f | xargs grep -l starfish

Lucas


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15318.48274.561205.271382>