View Single Post
Old 03-09-2008   #4 (permalink)
Marco Shaw [MVP]


 
 

Re: Possible to Read only Selected lines from multiple files intoanother file deleting source files when processed?

Quote:

> Thanks for your response - intriguing!
> I couldn't get it to actually put the detail line into the file
> data.out until I removed '.split(":")[3]' - what does that do?
Hmmmm... I'm using the v2 CTP so perhaps select-string is doing
something different for me.

..split is a method where the string passed is split-up into elements by
the character passed to it (":" in this case). "[3]" simply means that
once the string is split, get me the 4th element (4th because PowerShell
counts starting at 0 in this case).

Marco
My System SpecsSystem Spec