|
pipe to non-powershell process Hi
I need to pipe the output from a powershell commandlet to a perl
process. In its simplest form when I try: -
PS> 1..3 | perl -ne 'print "#$_#\n"'
I do not get the expected output, i.e.
#1#
#2#
#3#
Instead the output is
1
2
3
I have tried wrapping the perl command using Invoke-Command but this
didn't seem to help. Please can anyone help me?
Many thanks
Blair |