Hacker News new | past | comments | ask | show | jobs | submit login

ls -Recurse -Include "*exe" $PATH | % { something $_}



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: