Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Formatting Text

$
0
0

Beats me, I don’t have those videos memorized. :) I separate things onto multiple lines to make them more readable, but technically, there’s nothing there that you couldn’t jam into a single line. For example:

Get-ADUser -Properties Name,ProxyAddress | Select Name,@{n='ProxyAddresses';e={$_.ProxyAddresses -join "`r`n"}} | ft -Wrap

Personally, I find that kind of one-liner to be an eyesore, and I never put them into my scripts. I occasionally do that sort of thing at the console (interactively), but that’s about it.


Viewing all articles
Browse latest Browse all 13067

Trending Articles