Глаз PowerShell для парня Bash

Versionate мог бы добиться цели.

9
задан slf 19 October 2009 в 22:48
поделиться

4 ответа

I'd suggest just man up and read through the "piles" of documentation. It's actually not that difficult once you get the basics down. You'll need the knowledge anyway if you intend to do anything even remotely productive with PowerShell.

5
ответ дан 4 December 2019 в 12:19
поделиться

I'm not sure your Bash history is going to help you much with PowerShell. It is quite a bit different since the idea is to pipeline rich .NET objects as opposed to text or byte streams. For a leg up, check out my Effective PowerShell free eBook. It is about 60 pages but I think does a decent job of outlining the mental model you need to get the most out of PowerShell. For a full, free book check out Master PowerShell. At the point you think you're willing to part with some $$, Windows PowerShell in Action is the best book out there IMO.

Note: there are some "Unix" oriented aliases to get you by for a while (ls, ps, etc) but you'll run out of steam pretty quick because the parameters are quite different and as I said the pipeline is quite different than in Bash.

I would also recommended looking over some of the Q&A on PowerShell on StackOverflow especially for those questions that you think - "yeah, how would you do that in PowerShell". I think you would learn a good bit just doing that.

9
ответ дан 4 December 2019 в 12:19
поделиться

A quick Cheat sheet

6
ответ дан 4 December 2019 в 12:19
поделиться

there GNU utilities such as your favourite grep that is ported to windows. see GNU packages

on the other hand, if you loathe the idea of downloading stuff, you can use vbscript. it comes natively installed.

-3
ответ дан 4 December 2019 в 12:19
поделиться
Другие вопросы по тегам:

Похожие вопросы: