Тёмный

PowerShell Module 2: A Brief Introduction to the Language 

Bryan Cafferky
Подписаться 43 тыс.
Просмотров 5 тыс.
50% 1

Опубликовано:

 

22 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@bobbenavides
@bobbenavides 2 года назад
Bryan is very easy to understand. I think this is best place to start learning about PowerShell.
@waynekaniewski2421
@waynekaniewski2421 3 года назад
Want to automate simple tasks & discovered PowerShell. Your intro video is EXCELLENT...really a great overview, well-organized, and gave me a LOT of information in a short time. Thank you!
@BryanCafferky
@BryanCafferky 3 года назад
YW. Glad it helped.
@AllenAndersonTaylor
@AllenAndersonTaylor 4 года назад
Bryan, thanks so much for these videos. You're my virtual mentor. - Al
@BryanCafferky
@BryanCafferky 4 года назад
Glad they help.
@OM-mu1qt
@OM-mu1qt 3 года назад
Thank you from Trinidad and Tobago!
@ArchGuptill
@ArchGuptill 7 лет назад
Thanks Bryan. Great introductory videos. More please.
@bhatsuchi
@bhatsuchi 5 лет назад
Great videos! I love the simplicity in explaining concepts! I've watched other videos on Databricks from you, Bryan and they are all wonderful in explaining concepts really well! Thank you!
@BryanCafferky
@BryanCafferky 5 лет назад
Thanks!
@JensOleMortensen
@JensOleMortensen 4 года назад
Your videos are really awesome, and I learned a lot form it. Thank you very much.
@BryanCafferky
@BryanCafferky 4 года назад
Thanks.
@JuanRuiz-pf5eu
@JuanRuiz-pf5eu Месяц назад
Wonderful!! Thanks! Great Job!!
@David-wh7rm
@David-wh7rm 7 лет назад
Great video Bryan, keep it up! I liked the foreach explanation, I never realised this.
@BryanCafferky
@BryanCafferky 7 лет назад
Thanks David. I just did another that covers all the looping structures in detail.
@tuck582
@tuck582 5 лет назад
Hi Bryan, thank you for sharing your knowledge! Could you elaborate on the efficiency gains part with ForEach vs ForEach-Object? I am still having a difficult time understanding when one is better than the other, and what the actual differences are behind the scenes.
@BryanCafferky
@BryanCafferky 5 лет назад
Hi Tucker, My main point is that the alias foreach which translates to foreach-object only gets invoked when you pipe into the command. When you write the code as a loop over a collection, it does not translate using the alias which is very odd. Example code is: Get-ChildItem | foreach { "Value is $_" } Get-ChildItem | foreach-object { "Value is $_" } $myarray = Dir foreach ($val in $myarray) { "Value is $val " } foreach-Object ($val in $myarray) { "Value is $val " } Notice the the last statement fails but the prior one does not. In the first statement, foreach is translated to foreach-object due to the alias but the second to last statement is not translated. Why? I don't know. Kind of looks like a bug. So word of caution. As for performance, piping data through a command should perform better and require less memory because you don't need to store and hold the data, i.e. you are streaming it. When you loop over a collection the collection is all in memory. If you wanted to process a large file for example, the piping approach should scale better.
@nonsensepoem
@nonsensepoem 5 лет назад
Beautifully efficient. Thanks! One note about line 28 in your script: Perhaps this is regional, but I've always understood the tilde to be this: ~ while this ` is a backtick. Am I mistaken?
@BryanCafferky
@BryanCafferky 5 лет назад
Good point! Yes. You are correct. Did not realize I missed that. Thanks!
@WorthitDudes
@WorthitDudes 5 лет назад
powershell newbie here: this is by far the most helpful video i have seen so far (i have used my entire week off watching PS vids lol) thank you!
@BryanCafferky
@BryanCafferky 5 лет назад
Great way to spend the week. :-) Glad you found this useful.
Далее
Introduction to PowerShell Module 3: Loops
36:40
Просмотров 14 тыс.
Vim Tips I Wish I Knew Earlier
23:00
Просмотров 72 тыс.
Introduction to PowerShell: Module 4 - Dot-Sourcing
46:33
PowerShell Remoting
37:12
Просмотров 72 тыс.
Beginner's Guide to the Bash Terminal
1:14:37
Просмотров 2,3 млн
PowerShell: Writing  Functions
33:11
Просмотров 41 тыс.