Apologies if this is trivial- but how do list just one file in each subdirectory of my root folder? Linux terminal or MS DOS syntax doesn't matter. I would guess it would be an ls or dir command with some parameter but I havent found anything in the manual for either command.
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
If you want to see the directory names use -
If you DON'T want to see the directory names use -
|
|||||
|
|
Wrote a little script to do this.
Output:
|
||||
|
|
|
Following command do:
|
|||
|
|
Some elaboration on the File names with embedded newlines will not be handled gracefully by |
|||
|
|