|
|
|
|
|
by richfnelson
3315 days ago
|
|
In DOS you use `dir` to list files in a directory. You can also use `dir` to list files that match a string in a directory. `dir 1.png` would list all PNGs with a "1" in their name. You need a separate command with options and a flag to do that in bash. In DOS, it's less than a dozen characters, and it's far more intuitive than having to use `find`. Sure, `find` and `ls` might be more flexible, but definitely not more intuitive. |
|
No you don't; whether ls is a builtin is mostly irrelevant, but
does exactly what you (I assume) are saying, which AFAIK is a new extension introduced with WinNT's command processor, since the old algorithm...https://blogs.msdn.microsoft.com/oldnewthing/20071217-00/?p=...
...would effectively produce a pattern matching all files ending in '.png'.