Difference between revisions of "Power Shell"
Jump to navigation
Jump to search
(→Try...Catch: Minor update) |
(→Strings: Added "Escape Characters") |
||
Line 155: | Line 155: | ||
<br>'''Strip Whitespace'''<br> | <br>'''Strip Whitespace'''<br> | ||
<source lang="powershell"> $string = $string.TrimEnd() </source> | <source lang="powershell"> $string = $string.TrimEnd() </source> | ||
=== Escape Characters === | |||
{|cellpadding="1" cellspacing="0" border="1" | |||
|- style="background-color:#bbddff;" | |||
! Text !! Description | |||
|- | |||
| <code> `0 </code> || Null | |||
|- | |||
| <code> `a </code> || Bell/system beep | |||
|- | |||
| <code> `b </code> || Backspace | |||
|- | |||
| <code> `f </code> || Form feed | |||
|- | |||
| <code> `n </code> || New line | |||
|- | |||
| <code> `r </code> || Carriage return | |||
|- | |||
| <code> `t </code> || Tab (horizontal) | |||
|- | |||
| <code> `v </code> || Vertical tab | |||
|- | |||
| <code> `' </code> || ' | |||
|- | |||
| <code> `" </code> || " | |||
|} | |||
=== Arrays === | === Arrays === |