Ordenar objetos Podemos organizar los datos mostrados para facilitar su búsqueda utilizando el cmdlet Sort-Object.
Sorting Objects We can organize displayed data to make it easier to scan by using the Sort-Object cmdlet.
Ordenar las tablas hash Para ordenar las tablas hash por claves o valores alfabéticamente, se utiliza el método GetEnumerator de las tablas hash para obtener las claves y los valores que contiene y, a continuación, se utiliza el cmdlet Sort-Object para ordenarlos.
Sorting Hash Tables To sort the hash table alphabetically by keys or values, use the GetEnumerator method of hash tables to get the keys and values in the hash table, and then use the Sort-Object cmdlet to sort them.
Alte rezultate
Para ordenar la lista de variables de entorno por el nombre de la variable, se debe canalizar el resultado del comando Get-ChildItem al cmdlet Sort-Object.
To sort the list of environment variables by variable name, pipe the output of a Get-ChildItem command to the Sort-Object cmdlet.
El comando utiliza un segundo operador de canalización para enviar los eventos agrupados al cmdlet Sort-Object, que los ordena de forma descendente, de modo que el origen que aparece con más frecuencia se muestra en primer lugar.
The command uses a second pipeline operator to send the grouped events to the Sort-Object cmdlet, which sorts them in descending order, so the most frequently appearing source is listed first.
El operador de canalización (|) pasa los objetos al cmdlet Sort-Object, que los ordena según su prioridad base.
The pipeline operator (|) passes the object to the Sort-Object cmdlet, which sorts the objects in order of their base priority.
Utiliza un operador de canalización (|) para enviar los resultados al cmdlet Sort-Object, que ordena los objetos según los espacios de trabajo.
It uses a pipeline operator (|) to send the results to the Sort-Object cmdlet, which sorts the objects in working-set order.
El operador de canalización (|) envía los resultados de Get-Process al cmdlet Sort-Object, que los ordena según la propiedad StartTime.
The pipeline operator (|) sends the output of Get-Process to the Sort-Object cmdlet, which sorts it based on the StartTime property.
Aunque use el parámetro Force, el cmdlet no puede borrar constantes.
Even using the Force parameter, the cmdlet cannot clear constants.
Cuando se usa sin parámetros, el cmdlet devuelve todas las reglas.
When it is used without parameters, the cmdlet returns all rules.
El cmdlet Get-ChildItem obtiene los objetos que representan los archivos del directorio.
The Get-ChildItem cmdlet gets objects representing each file in the directory.
El comando utiliza el cmdlet Get-Process para obtener una lista de procesos.
The command uses the Get-Process cmdlet to get a list of processes.
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.
Înregistrează-te pentru a accesa mai multe exemple