Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Filtering and Formatting Output > Using the select-object Cmdlet

7.2. Using the select-object Cmdlet

The select-object cmdlet lets you select specified properties of an object or set of objects. In addition, you can use the select-object cmdlet to select unique objects from an array of objects or to select a specified number of objects from the beginning or end of an array of objects. The select-object has the following parameters in addition to the common parameters listed in Chapter 6:

  • property — Specifies properties of interest

  • excludeProperty — Specifies properties to be excluded

  • expandProperty — Specifies a property to be selected and, if that property is an array, specifies that each value in the array should be selected

  • first — Specifies a number of values at the beginning of an array that are to be selected

  • last — Specifies a number of values at the end of an array that are to be selected

  • unique — Specifies that only unique values are to be selected

  • inputObject — Specifies an input object, if the input objects are not supplied by the preceding step of a pipeline


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint