Hacker News new | ask | show | jobs
by rat87 3755 days ago
ls -Recurse -Include "*exe" $PATH | % { something $_}
1 comments

Use -Filter instead of -Include unless you need fancy wildcards. It's much faster because it gets passed to the FileSystem provider and filtering is applied at that level already.