Created
August 16, 2015 11:51
-
-
Save MattHodge/61e9f5ddd0ce2b5cc082 to your computer and use it in GitHub Desktop.
Description for 05_Blog_PSStringFormating_HashTables_SingleQuotes.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# When our string contains single quotes | |
$myItem = @{ | |
name = 'Matt' | |
age = 29 | |
} | |
$myString = "The user '$($myItem.name)' is of age '$($myItem.age)'" | |
Write-Output $myString |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From Blog Post: https://www.hodgkins.net.au/powershell/the-ultimate-guide-to-powershell-string-formatting/