mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Changed 'sort' to 'Sort-Object'. (#1859)
Updated the sample output of $PSVersionTable and changed 'sort' to 'Sort-Object'.
This commit is contained in:
1 parent
cfdba3c426
commit
f3fb5951ac
1 file changed
+4
-3
@@ -185,12 +185,13 @@ Type **$PSVersionTable** in your PowerShell session, you will see something like
|
|||||||
```PowerShell
|
```PowerShell
|
||||||
Name Value
|
Name Value
|
||||||
---- -----
|
---- -----
|
||||||
PSVersion 5.1.10032.0
|
PSVersion 6.0.0-alpha
|
||||||
PSEdition Core
|
PSEdition Core
|
||||||
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
|
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
|
||||||
BuildVersion 3.0.0.0
|
BuildVersion 3.0.0.0
|
||||||
|
GitCommitId v6.0.0-alpha.9
|
||||||
CLRVersion
|
CLRVersion
|
||||||
WSManStackVersion 1.0
|
WSManStackVersion 3.0
|
||||||
PSRemotingProtocolVersion 2.3
|
PSRemotingProtocolVersion 2.3
|
||||||
SerializationVersion 1.1.0.1
|
SerializationVersion 1.1.0.1
|
||||||
|
|
||||||
@@ -244,7 +245,7 @@ PowerShell Pipeline '|'
|
|||||||
Sometimes when you run Get-ChildItem or "dir", you want to get a list of files and folders in a descending order.
|
Sometimes when you run Get-ChildItem or "dir", you want to get a list of files and folders in a descending order.
|
||||||
To achieve that, type:
|
To achieve that, type:
|
||||||
```PowerShell
|
```PowerShell
|
||||||
PS /home/jen> dir | sort -Descending
|
PS /home/jen> dir | Sort-Object -Descending
|
||||||
```
|
```
|
||||||
Say you want to get the largest file in a directory
|
Say you want to get the largest file in a directory
|
||||||
```PowerShell
|
```PowerShell
|
||||||
|
|||||||
Reference in new issue
Block a user