4 ms·
Here's an example, find all files recursively that are over 100k ls -r | ?{$_.Length > 100*1024} Doing this in Bash or CMD would be annoying (certainly do
by xpaulbettsx 15y ago
Here's an example, find all files recursively that are over 100k
ls -r | ?{$_.Length > 100*1024}
Doing this in Bash or CMD would be annoying (certainly doable though!), especially the recursive part.
- gvb 15y agofind . -size +100k
- xpaulbettsx 15y agoI stand corrected :) I certainly don't want to start a "which is better" argument, just trying to give an example of something interesting in PSh
- burgerbrain 15y ago'ls' has -R too, if you really want to do it like that. Of course, that form in Unix would not be suggested, because there are other far better (readable/concise) ways of doing that. (like the 'find' one someone else just gave you).