Montag, 1. Februar 2010

Out-ISEFile (V 0.91)

Just posted an improved version at poshcode.

Note the filter Remove-TrailingBlanks, which uses regex to remove embedded trailing blanks.

And note the way I build back a collection from the objects running down the input pipeline.

Having back the object I can sen it to Out-String which has a width parameter (Snoopy dance).

For one thing I miss the option to pass the value 0 meaning unlimited and on the other side I'm not going to ask for the rationale of emiting trailing blanks to pad to the width. I guess this is a rudiment from the last millenium.

Finally note the -fl switch. I'm planning to implement some word wrapping, when this switch is selected.


  1. Out-String produces a string version of what the console output would be.

  2. No it is better, it has a width parameter.