Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Skip-Object

Skip-Object

pscx.dll

Synopsis

PSCX Cmdlet: Skips the specified objects in the pipeline.

Syntax

Skip-Object [-First] [-Last] [-InputObject] [-Index] [<CommonParameters>]

Detailed Description

Skips the specified number of objects at the beginning of a sequence and/or the end of a sequence.

Parameters

-First <Int32>

Skips the selected number of objects at the head of the pipeline sequence.

Aliases

None

Required?

false

Position

1

Default value

0

Accept pipeline input?

false

Accept wildcard characters?

false

-Last <Int32>

Skips the selected number of objects at the tail of the pipeline sequence.

Aliases

None

Required?

false

Position

2

Default value

0

Accept pipeline input?

false

Accept wildcard characters?

false

-InputObject <PSObject>

Accepts an object as input to the cmdlet. Enter a variable that contains the objects or type a command or expression that gets the objects.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-Index <Int32[]>

Skips objects at the selected indices within the pipeline sequence.

Aliases

None

Required?

false

Position

3

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type

Object[]

Return Type

PSobject

Notes

Examples

-------------------------- EXAMPLE 1 --------------------------

This command will prevent the first five objects, the last two objects and the objects at index 10 and 11 from being output by the pipeline.

0..20 | Skip-Object -first 5 -last 2 -index 10,11