RE: Searching

From: Jamie Hushower <hushower@alaska-geeks.com>
Date: Sun Sep 24 2006 - 12:29:00 AKDT

#grep -rn string .

The "r" switch makes it recursive. The "n" switch will return the line numb=
er of the file it was found in. The "." specifies the current directory, bu=
t could be replaced by any valid path.

-Jamie
__
Jamie Hushower
Computer Consultant
Rent-A-Geek
http://alaska-geeks.com
223-9136

-----Original Message-----
From: aklug-bounce@aklug.org [mailto:aklug-bounce@aklug.org] On Behalf Of K=
urt Mathews
Sent: Friday, September 22, 2006 6:44 PM
To: aklug@aklug.org
Subject: Searching

Hey guys,
I'm trying to search for a string within any files of the current working
directory and all sub directories. Does anyone know the best command for
this? I looked through grep, and I think you have to specify a file to
search. Is there a command the searches through ALL files?

--=20
/***************************************
* Kurt Mathews
* axkim@uaa.alaska.edu
* k@uaa.alaska.edu
****************************************/

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Sun Sep 24 12:29:25 2006

This archive was generated by hypermail 2.1.8 : Sun Sep 24 2006 - 12:29:26 AKDT