1

I've been writing some basic PowerShell scripts for a while now and want to stick to the appropriate naming conventions by starting the name with approved verbs. I can't see the difference between "Get" and "Find" though.

Supposing I make a script that searches Twitter for certain words should I call that Get-Tweets or Find-Tweets?

3

Get is for retrieving an object or resource. Find is for looking for the existence of an object or resource.

For more information, see the PowerShell documentation: Approved Verbs for PowerShell Commands

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.