I use this to list all text files in d:\ root:
ls d:\*.txt
This to list all text files in all sub-directories:
ls d:\*\*.txt
How can I list all text files in the root AND in all sub-directories using ls
?
This doesn't work:
ls d:/{,**/}*.txt
edit: in ls
not in find
, grep
, awk
, sed
or whatever other search command