PowerShell v2 Pipelining in 73 (make that 53) Characters

I started using Twitter and saw a request from Thomas Lee for help about pipelining in CTP3.  The thing about Twitter is that the messages have to be tiny so I wasn’t sure I could answer using it.  It turns out I can solve this problem AND give a usage example in 73 characters.  Here goes: PS> function t{param([Parameter(ValueFromPipeline=1)]$t);process{$t}};1..10|t 1 2 3 4 5 6 7 Read More...

Read the complete post at http://blogs.msdn.com/powershell/archive/2008/12/24/powershell-v2-pipelining-in-73-make-that-53-characters.aspx


Posted Dec 24 2008, 03:18 PM by Windows PowerShell Blog
Filed under: ,
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.