3 ms·
Windows CMD is often criticized, but it is easier to work with in at least one way. A task discussed in the post, to find a file with name containing "meta" in
by Bostonian 6y ago
Windows CMD is often criticized, but it is easier to work with in at least one way. A task discussed in the post, to find a file with name containing "meta" in a subdirectory is just dir /b /s *meta* .
- pdkl95 6y agoUsing find: find . -name '*meta*' If you want to use the matching files on a command line (requires "shopt -s globstar") some_command **/*meta* The double star expands to any number of directories. You can even mix-and-match complex patterns as needed: some_command */data/**/*meta* # matches: # dir_a/data/meta # dir_b/data/foo/bar/baz/meta.txt