Date: Mon, 7 Apr 2003 14:06:26 +0200 (CEST) From: Konrad Heuer <kheuer2@gwdg.de> To: CARTER Anthony <a.carter@cordis.lu> Cc: freebsd-questions@freebsd.org Subject: Re: searching insed(ide) files Message-ID: <20030407140430.W10888-100000@gwdu60.gwdg.de> In-Reply-To: <200304071324.52494.a.carter@intrasoft.lu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 7 Apr 2003, CARTER Anthony wrote: > I am looking for a way to search inside a number of text files for a > particular string and return the name of the file if found. Any ideas? grep -c string file file ... | grep '1$' | sed 's/:.*$//' Regards Konrad Heuer (kheuer2@gwdg.de) ____ ___ _______ GWDG / __/______ ___ / _ )/ __/ _ \ Am Fassberg / _// __/ -_) -_) _ |\ \/ // / 37077 Goettingen /_/ /_/ \__/\__/____/___/____/ Germany
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030407140430.W10888-100000>