* Re: Probably stupid question
Probably stupid question Tom Masterson
@ ` Mario Lang
` Mariusz Madej
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Mario Lang @ UTC (permalink / raw)
To: blinux-list
man find
"Tom Masterson" <kd7cyu@yahoo.com> writes:
> I am trying to find one or more files in an unknown directory. The question is what command can I use to do this. I know some files with the given extension exist but I need to know if there are more in a different location and so far I haven't found any command that will tell me this.
>
> Tom
--
CYa,
Mario | Debian Developer <URL:http://debian.org/>
| Get my public key via finger mlang@db.debian.org
| 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Probably stupid question
Probably stupid question Tom Masterson
` Mario Lang
@ ` Mariusz Madej
` A. R. Vener
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Mariusz Madej @ UTC (permalink / raw)
To: blinux-list
Friday, 12 December 2003, 9:16:06 -0800, Tom Masterson wrote:
[There are no stupid questions.]
> I am trying to find one or more files in an unknown directory. The question is what command can I use to do this. I know some files with the given extension exist but I need to know if there are more in a different location and so far I haven't found any command that will tell me this.
Have you tried "find <main_directory> -iname '*.<extension>' "?
Mariusz
--
,\Mariusz Madej/,',',',',',',',',',',',',',',',',',',\EKG/GG#1117481/,
Member of Polish DDTP Team -- http://ddtp.debian.org
deb http://ddtp.debian.org/aptable pl/unstable main
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Probably stupid question
Probably stupid question Tom Masterson
` Mario Lang
` Mariusz Madej
@ ` A. R. Vener
` Rafael Skodlar
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: A. R. Vener @ UTC (permalink / raw)
To: blinux-list
Try the locate command.
--
Rudy
On Fri, Dec 12, 2003 at 09:16:06AM -0800, Tom Masterson wrote:
>
> I am trying to find one or more files in an unknown directory. The
> question is what command can I use to do this. I know some files with
> the given extension exist but I need to know if there are more in a
> different location and so far I haven't found any command that will
> tell me this.
>
>
>
> Tom
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Probably stupid question
Probably stupid question Tom Masterson
` (2 preceding siblings ...)
` A. R. Vener
@ ` Rafael Skodlar
` Lorenzo Prince
[not found] ` <Pine.BSF.4.58.0312121905220.23368@server2.shellworld.net>
5 siblings, 0 replies; 7+ messages in thread
From: Rafael Skodlar @ UTC (permalink / raw)
To: blinux-list
Hi Tom,
The following assumes you do know which tree the "unknown directory"
is under.
find /somedir -name filename -ls
or
find /somedir -name filename -print
to get two different ways of file or directory information.
It should be easy to find a file unless your system is a mess of
directories.
Some people sugested to use locate but that won't show files created
after a utility slocate is run by a cron job. Of course you can run
slocate manualy to update the database before using locate.
On Fri, Dec 12, 2003 at 09:16:06AM -0800, Tom Masterson wrote:
> I am trying to find one or more files in an unknown directory. The question is what command can I use to do this. I know some files with the given extension exist but I need to know if there are more in a different location and so far I haven't found any command that will tell me this.
>
> Tom
--
Rafael
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Probably stupid question
Probably stupid question Tom Masterson
` (3 preceding siblings ...)
` Rafael Skodlar
@ ` Lorenzo Prince
[not found] ` <Pine.BSF.4.58.0312121905220.23368@server2.shellworld.net>
5 siblings, 0 replies; 7+ messages in thread
From: Lorenzo Prince @ UTC (permalink / raw)
To: blinux-list
[-- Attachment #1: msg.pgp --]
[-- Type: application/pgp, Size: 426 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread[parent not found: <Pine.BSF.4.58.0312121905220.23368@server2.shellworld.net>]