New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Apps and Games Discussion of applications and games available for Mac OS X.

find command in terminal -- listing files twice


Post Reply New Thread Subscribe

 
Thread Tools
Straitsfan

 
Member Since: Feb 03, 2008
Posts: 142
Straitsfan is on a distinguished road

Straitsfan is offline
I noticed the other day that after i used the find command to search for some files, the computer listed them twice -- first with just the names of the files (meaning ./(then the individual file names), then with the directory name, followed by the file names (directory name/file name). I was already in the desired directory, and I don't think this has ever happened before. Can someone tell me why it does this and how to fix it? Is there something wrong?
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,640
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
What does your find command look like?

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Personal Twitter
QUOTE Thanks
Straitsfan

 
Member Since: Feb 03, 2008
Posts: 142
Straitsfan is on a distinguished road

Straitsfan is offline
Sorry -- here it is :

find . -iname "*(text to search for)*" -type f

then, as I said, it gives ./(Filenames) then ./(directory name)/(filenames)

and, just now, if I do it from my home directory, I get ./directory name./ file names, then ./directory name/directory name/filenames

Just the other day as well I reinstalled Snow Leopard after I thought I had possibly deleted some necessary files, if that helps.
QUOTE Thanks
Straitsfan

 
Member Since: Feb 03, 2008
Posts: 142
Straitsfan is on a distinguished road

Straitsfan is offline
Never mind -- I am such an idiot -- I didn't notice that I had place a copy of the subdirectory from my flash drive inside the subdirectory
QUOTE Thanks

Post Reply New Thread Subscribe


« Block Uploads in Transmission | (Help) Missing Sounds UT2004 »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
where else might I find random useless files I need to delete? deathtolife04 OS X - Operating System 2 12-18-2008 09:29 PM
Artwork, iTunes and icons for audio files in Finder Theophil iOS and Apps 2 11-27-2008 09:55 AM
Terminal Help rs2sensen OS X - Apps and Games 1 04-25-2005 10:52 PM
Can't find files.. The Giver Apple Notebooks 1 08-17-2004 07:21 PM
how to find and delete temp files zarp3333 Other Hardware and Peripherals 6 11-13-2003 11:21 AM

All times are GMT -4. The time now is 04:43 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?