The question What is the Linux equivalent of DOS “dir /s /b filename”? comes close but it winds up playing a file find operation for all such named file names.
I'm however looking to do a directory contents diff comparison with a directory on a Windows machine and compare it to what should be a similarly constructed directory on a QNX box. I want to run the directory enumerating command on both machines, do some text file manipulation to convert path delimiting characters and root drives and what not to get them into a compatible format for an insightful diff.
I can generate a folder manifest of all subdirectories and files therein with dir /b /s
, and get output formatted as a bunch of paths...
c:\Temp>dir /b /s
c:\Temp\Subfolder1
C:\Temp\Subfolder1\File1.txt
C:\Temp\Subfolder1\File2.txt
...
I can see dir /s
becomes ls -R
, but how do I get the /B
equivalent of the path output formatting?
-name
option, so it doesn't filter by name.