Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MattHodge/61e9f5ddd0ce2b5cc082 to your computer and use it in GitHub Desktop.
Save MattHodge/61e9f5ddd0ce2b5cc082 to your computer and use it in GitHub Desktop.
Description for 05_Blog_PSStringFormating_HashTables_SingleQuotes.ps1
# When our string contains single quotes
$myItem = @{
name = 'Matt'
age = 29
}
$myString = "The user '$($myItem.name)' is of age '$($myItem.age)'"
Write-Output $myString
@MattHodge
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment