PowerShell String Manipulation

preview_player
Показать описание
In this video, we learn some of the cool things you can do with a string of text in PowerShell. This is the time of stuff you have to add to your toolbelt to automate your works.

Topics covered:
* ToUpper
* ToLower
* Contains
* Replace
* Substring
* And a few examples

Рекомендации по теме
Комментарии
Автор

Thanks for the video! Really good idea using indexof, going to use that in my scripts a lot more currently I use the length method to sort mine:

$url.substring(0, $url.length -4)

Your way is much better when you have port numbers of different sizes. Again thanks!

funhurtsmylungs
Автор

I know this is 3 years old, but you've helped me so much with your videos and I've only watched two so far! Thank You!

johnnymartin
Автор

4years later and you explained things easier and more detailed than my professor! Thank you.

samanthagarcia
Автор

Thanks! The substring function was what I was looking for.

HestnetIT
Автор

Another great explanation on how to do something in PowerShell. Many thanks for taking the time to make this video Shane.

S
Автор

indexof and substring stuff was really great and well explained. Cheers again

nigelkeyworth
Автор

The practical examples accompanied by explanation of what each piece of the script does is a great teaching method. Your videos are super helpful. Thank you for producing them! (Love the "wuz" bit! Very funny!)

michaelgarner
Автор

You are the man Shane, it means the world to me that you are posting all this great content online. thank you for everything.

benoitbourque
Автор

Thank you so much. Especially use case scenarios helped to root how and where string manipulation could be real day saver. Tnx! 😊😊😊😊

atothek
Автор

Hi Shane, Thanks for all the helping examples.  I 'm using PowerShell for some time but still managed to learn some new stuff. Keep with the good work.

TheYanivR
Автор

Learning to use PowerShell to automate work with Office Files, your videos are very helpful. Wish you would increase your Font size.

jamesthomas
Автор

Hi Shane. Thanks for these good videos on Powershell. I was very confused with Powershell earlier but now I can easily learn from these videos. You are simply awesome who is sharing such a valuable information absolutely free to help others. Hats off to you bro

satishkumar
Автор

Thanks a lot. I come form the Unix world and used most of the time ksh and bash. Very good tutorial.

alexandrevalente
Автор

nice presentation. Great approach to the topic

purplemonkeydishwasher
Автор

Hello Shane!! This helped. I want to take it just a little farther. I need to get a list of the local users Get-LocalUsers. I made it a Var $LclUsr = Get-LocalUser. It gives the Name, Enableed, and Description. I need to parse the Enabled header (which is either True/False). and if one of the Names is False when it should be True output the info and vice versa if True when it should be False. I was told Select-String would be the best route.

djdingle
Автор

Thanks for another very helpful video, Shane. Perhaps you have already covered it in another video, but I have a lot of trouble with concatenating strings in PowerShell. It seems very different from other languages.
If you haven't covered it yet, please do when you have a chance.

stevenstewart
Автор

Shane, Thanks for the great lesson. That last command solved my problem !

Pittsburghfix
Автор

Nice examples. I laughed so hard when you corrected "on-premise". Its almost an IT joke now. About time we got over it dont you think?

MrSelecta
Автор

Great Video share, i learn a lot, the easy way ! Wouldn;t be great if you post the link to the powershell you explained to Github or your site, like a blog ? Would be easy to execute and get out exercises !

PabloVillaronga
Автор

I'm a beginner to PowerShell if ya know where to pick up books for it please lemme know thanks loved ur tuts

dustinsullivan