From the course: PowerShell: Automating IT Administration

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Manipulating data with logic tests and loops

Manipulating data with logic tests and loops - PowerShell Tutorial

From the course: PowerShell: Automating IT Administration

Manipulating data with logic tests and loops

- [Instructor] Now in our previous examples, we looked at conditional statements and comparisons. We then looped through content just for viewing purposes. But of course, as we are going and working with PowerShell, there'll be times where we need to manipulate the data. So let's have a look at what this might be. And I'm not talking about changing the data but just looking at the data in a different way. So remember that we ran this statement last time which is get child item path assets. If I choose to run this one it will list me my files in that directory. Now what about if I didn't want to see them all? I only wanted to see specific types I could then use the pipe command which we touched on this last time but the pipe command joins one piece to another. So basically the output of the get child item command is then automatically passed over to the wear object. So my where object, I'm saying extension is equal to CSV. So…

Contents