On Fri, 20 May 2016 10:37:07 -0700 (PDT), Tom <
lyn...@gmail.com> wrote
in microsoft.public.windows.powershell:
>FormatString $pn $des $r
>
>This works nicely, however the output is a bit off from Column 1 to Column2:
>
>PartNumber Description RefDes
>---------- ----------- ------
>011030-01-LF [I_ROHS6] ICKT SINGLE 2-INPUT POSITIVE AND GATE 1.6-5.5V 24MA 5... U10
>011030-01-LF [I_ROHS6] ICKT SINGLE 2-INPUT POSITIVE AND GATE 1.6-5.5V 24MA 5... U14
>
>I'd like Column1 to be about 10 characters wide and Column2 to be 120. Sort of what printf would do:
>
>printf("%10s, %120s, %4s\n", $pn, $des, $r)
Please take a look at
http://stackoverflow.com/questions/9904352/how-to-create-printf-effect-in-powershell
I think that answers yoru questions nicely.
jue