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:
which appears to work. However, piping through "wc -l" I get a count exactly 3 higher than when counting the files with just
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.
Code:
find ~+ -type f -name "*mp4"
Code:
ls -R |grep mp4 |wc -l
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.