* Probably stupid question
@ Tom Masterson
` Mario Lang
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Tom Masterson @ UTC (permalink / raw)
To: blinux-list
[-- Attachment #1: Type: text/plain, Size: 295 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 716 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* 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
* Re: Probably stupid question
[not found] ` <Pine.BSF.4.58.0312121905220.23368@server2.shellworld.net>
@ ` Tom Masterson
0 siblings, 0 replies; 7+ messages in thread
From: Tom Masterson @ UTC (permalink / raw)
To: Jude DaShiell; +Cc: blinux-list
The correct find command did it.
THanks too all for the help.
Tom
----- Original Message -----
From: "Jude DaShiell" <jdashiel@shellworld.net>
To: "Tom Masterson" <kd7cyu@yahoo.com>
Sent: Friday, December 12, 2003 16:05
Subject: Re: Probably stupid question
> ls *.ext where ext is the file extension.
>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
Probably stupid question Tom Masterson
` Mario Lang
` Mariusz Madej
` A. R. Vener
` Rafael Skodlar
` Lorenzo Prince
[not found] ` <Pine.BSF.4.58.0312121905220.23368@server2.shellworld.net>
` Tom Masterson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).