PowerShell: Escape Characters

By Xah Lee. Date: .

These sequence of characters have special meaning when inside double quoted string.

`0Null
`aAlert
`bBackspace
`eEscape
`fForm feed
`nNew line
`rCarriage return
`tHorizontal tab
`u{h}Unicode. h is 1 to 6 digits of the character's codepoint in hexadecimal
`vVertical tab

see ASCII Characters

example of a emoji:

# 😃
# codepoint decimal 128515
# codepoint hexadecimal 1f603

"😃" -eq "`u{1F603}"
# true

PowerShell String

PowerShell

Practical How-To

list files

list dirs

on dir

on file

Windows config

misc


PowerShell in Depth

Programing PowerShell

Value Types

String

Variable

Boolean

Conditional

Data Structure

Loop and Iteration

Input/Output

Function

Profile and Script

Script Examples