Straitsfan
Registered
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?
Here's the command I'm using:
find . -iname "*(text to search for)*" -type f
and, if I use find from my home directory (that is, not in the desired directory, it lists ./(directory name)/(directory name)/file names. This is really wierd. Is it supposed to do this?
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?
Here's the command I'm using:
find . -iname "*(text to search for)*" -type f
and, if I use find from my home directory (that is, not in the desired directory, it lists ./(directory name)/(directory name)/file names. This is really wierd. Is it supposed to do this?