Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Apr 2006 15:17:46 +0200
From:      usleepless@gmail.com
To:        "Mc Shch" <exploit_it@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to use shell commands to work for my requests?
Message-ID:  <c39ec84c0604070617g67434db2j33720f1b2a96f51b@mail.gmail.com>
In-Reply-To: <c39ec84c0604070616k78ec3df1h176e08c8f7f790aa@mail.gmail.com>
References:  <BAY112-F51096BB0E463E008D2F59FEC90@phx.gbl> <c39ec84c0604070616k78ec3df1h176e08c8f7f790aa@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Exploit_it

>    For example:
>    i want to search some files which contain "getopt" string...

what's in a name...

brute force: grep -R getopt *

smarter: find . -name "*.cpp" -exec grep getopt {}\; -print

regards,

usleep


PS this is a resend to fix etiquette



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