<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>Re: find a file</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>find -name "searchterm" /<BR>
Will search the entire drive for files...<BR>
<BR>
As to the secondary question regarding grep, to find a specific word in a file (or files) in a directory, I usually do this little shell script, typed at the commandline-<BR>
for word in `ls`<BR>
do<BR>
cat $word | grep "searchword"<BR>
done<BR>
<BR>
That will search each file in a directory and tell you which files have the word you want (if any)<BR>
<BR>
I wouldn't recommend this for extremely large directories (or an entire disk).<BR>
<BR>
<BR>
----- Original Message -----<BR>
From: ubuntu-users-bounces@lists.ubuntu.com <ubuntu-users-bounces@lists.ubuntu.com><BR>
To: Ubuntu user technical support,  not for general discussions <ubuntu-users@lists.ubuntu.com><BR>
Sent: Mon Aug 06 07:21:46 2007<BR>
Subject: Re: find a file<BR>
<BR>
On 8/6/07, norman <norman@littletank.org> wrote:<BR>
<BR>
        Although I have used Ubuntu for quite some time I have never been sure<BR>
        how to go about finding named files. I am not a Linux person although, I<BR>
        can use a terminal if needed. For example I needed to find any files<BR>
        with .lck as the extension and remove them otherwise I would be unable<BR>
        to burn DVDs using Mthtv. So, I went to Places -> Search for files,<BR>
        entered *.lck and the report was no files found. Yet there had to be at<BR>
        least one file which was causing me the problem.<BR>
<BR>
<BR>
That's one problem I have too. Sometimes I find things using the "locate -R" command, but sometimes it doesn't work. I still haven't learned how to search things on linux.<BR>
I have also looked on man and google about how to use the grep command, but still haven't figured out how to find things this way. A couple of days ago, I wanted to find all the files containing a specific word, but couldn't figure out how to use the grep command. =(<BR>
<BR>
Allan<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>