Introduction
System automation without arrays is almost unthinkable. Everywhere there is a list of entities to be worked on, chances are, the implementation uses arrays. PowerShell is no exception. PowerShell works with single-dimensional as well as multidimensional arrays. Multidimensional arrays are of two types: jagged and non-jagged. We will look into what they are shortly.
Another very important concept in PowerShell is that of hashtables. Think of hashtables as named arrays (or, more appropriately, associative arrays). Hashtables provide us with a very systematic way to handle arrays, which we will see in the last couple of recipes of this chapter.
Replace pwsh with pwsh-preview in all of the following instances of pwsh if you are using ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access