Forrest logo
back to context overview

measure-object

List of commands for measure-object:

  • measure-object:tldr:7fdb2 measure-object: Count the files and folders in a directory.
    $ Get-ChildItem | Measure-Object
    try on your machine
    explain this command
  • measure-object:tldr:8b3d2 measure-object: Pipe input to Measure-Command (objects that are piped to `Measure-Command` are available to the script block that is passed to the Expression parameter).
    $ "One", "Two", "Three", "Four" | Set-Content -Path "${path\to\file}"; Get-Content "${path\to\file}"; | Measure-Object -Character -Line -Word
    try on your machine
    explain this command
back to context overview