Announcement

Collapse
No announcement yet.

Trying to find three hidden files in a large collection of files? Or I'm I seeing something else?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Trying to find three hidden files in a large collection of files? Or I'm I seeing something else?

    I have a media folder with dozens of directories and hundreds of files. I want a "clean" list of the full paths of the mp4 files, so I used:
    Code:
    find ~+ -type f -name "*mp4"
    which appears to work. However, piping through "wc -l" I get a count exactly 3 higher than when counting the files with just
    Code:
    ls -R |grep mp4 |wc -l
    Running the find command through sort revealed three apparently "hidden" files, all named ".mp4". These all list as just ".mp4" - no path included.

    On the surface, this indicates to me that these three files (if that's what they are) are in the root directory where I ran the command, but that's not possible since they all have the same name. So either the path of those files is not showing for an unknown reason or something else is happening. I'm also seeing the same behavior on one other directory, but not every directory.


    Please Read Me
Working...
X