Results 1 to 4 of 4
  1. #1

    Member Since
    Feb 03, 2008
    find command in terminal -- listing files twice
    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?

  2. #2

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Early 2015 13" rMBP
    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
    Writing a Quality Post

  3. #3

    Member Since
    Feb 03, 2008
    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.

  4. #4

    Member Since
    Feb 03, 2008
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. New Blog: Learning the Command Line - Listing Files
    By MF Blog Bot in forum Apple Rumors and Reports
    Replies: 0
    Last Post: 10-23-2013, 11:40 AM
  2. Terminal command help.
    By ladylisak in forum macOS - Operating System
    Replies: 2
    Last Post: 10-18-2013, 01:47 PM
  3. Listing DVD content via Terminal
    By LeChuck in forum macOS - Operating System
    Replies: 4
    Last Post: 12-13-2012, 01:40 PM
  4. Terminal command to make aliases (shortcuts) of files/folders?
    By ericconn in forum macOS - Operating System
    Replies: 4
    Last Post: 05-24-2012, 02:16 PM
  5. find command won't list keynote files
    By Straitsfan in forum macOS - Operating System
    Replies: 1
    Last Post: 05-13-2011, 08:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts