Chapter 2. Data Parsing and Manipulation
One of the most powerful features of PowerShell is its ability to retrieve and manipulate data. Many a times when you retrieve data from a PowerShell session, the format in which it is available is different from what you would want to display in the PowerShell window or in a log file. For this purpose, PowerShell provides powerful cmdlets and methods to perform data manipulation to best suit your needs as a PowerShell scripter.
While reading this chapter, you'll learn the following concepts:
- String manipulation
- Number manipulation and parsing
- Date/time manipulation
- Forcing data types
- PowerShell pipeline
String manipulation
String manipulation is something that you'll need to do in almost every script you create. While some of the string methods will be used more often than others, they all serve different purposes for your script. It is ultimately up to your creativity on how you want data to look when it is displayed on the screen...