Print back quote in Powershell

时间:2019-01-09 21:58:01

标签: powershell

I need to print back quotes ` between values in PowerShell. I'm trying to do this because I am sending data to Azure DevOps and need certain values to be marked as code (it uses Markdown).

For example:

$names = @("A","B","C")

$names should print just how the letter B had the back quote first

`A, `B, `C

I've tried adding the back quote in several different ways to display it but nothing works

`$_.names
'\ 

Can printing the back-quote even be achieved?

0 个答案:

没有答案