LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-28-2010, 10:24 AM   #1
bluesword1969
Member
 
Registered: Jan 2010
Location: East Coast, USA.
Distribution: Gentoo, Debian, OpenBSD.
Posts: 70

Rep: Reputation: 25
Question The find command not actually finding some files.


SOLVED: Typo.

Hello all.

I'm using the find command to try and find zip files, and it is missing an entire directory full of them.

No strange permissions or anything set.

Any sanity checks I could do on the files themselves?

Any other ideas also welcome.

Thanks!

Last edited by bluesword1969; 09-28-2010 at 10:31 AM.
 
Old 09-28-2010, 10:29 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

What did the command look like?

This looks for files, starting from the root directory, ending in zip (case insensitive).
find / -type f -iname "*zip"

Hope this helps.
 
Old 09-28-2010, 10:30 AM   #3
healyma
Member
 
Registered: Feb 2009
Location: Mayo, Ireland
Distribution: LFS 6.4; Debian 5.4; Mythbuntu & Kubuntu 10.04
Posts: 49

Rep: Reputation: 19
Hi,

I came across something similar where the wildcards were not picking out certain files. From what I can remember, the files in question were duplicate copies of downloaded files (e.g. myfile.ext was listed, but myfile (1).ext was not - for my*.ext).

Not sure if this is of any relevance to your issue

Mark
 
Old 09-28-2010, 10:32 AM   #4
bluesword1969
Member
 
Registered: Jan 2010
Location: East Coast, USA.
Distribution: Gentoo, Debian, OpenBSD.
Posts: 70

Original Poster
Rep: Reputation: 25
See above.
 
Old 09-28-2010, 10:33 AM   #5
healyma
Member
 
Registered: Feb 2009
Location: Mayo, Ireland
Distribution: LFS 6.4; Debian 5.4; Mythbuntu & Kubuntu 10.04
Posts: 49

Rep: Reputation: 19
Spotted that - think I posted as you were updating the thread status.

Cheers
 
Old 09-28-2010, 10:34 AM   #6
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 182

Rep: Reputation: 29
Smile

Hi,
Why don't you just updatedb and locate zip files?

Oops I just saw Druuna's post.

Last edited by basheer; 09-28-2010 at 10:38 AM. Reason: By the time I was typing there were already three posts and one by druuna with a solution.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
find command and finding create time thllgo Linux - Server 3 04-28-2010 03:21 PM
Finding my CD-ROM device by find command? kushalkoolwal Linux - Software 0 08-20-2009 02:32 PM
Finding and moving files with find Noexit Linux - Software 3 06-18-2008 12:35 PM
find command : finding files that are created within last 24 hours Fond_of_Opensource Linux - Newbie 1 11-06-2006 03:47 AM
having trouble with ls and find finding files. dr_zayus69 Linux - Software 4 05-26-2005 10:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration