diff --git a/docs/document/Powershell/docs/1.Overview.md b/docs/document/PowerShell/docs/1.Overview.md similarity index 100% rename from docs/document/Powershell/docs/1.Overview.md rename to docs/document/PowerShell/docs/1.Overview.md diff --git a/docs/document/Powershell/docs/Alias.md b/docs/document/PowerShell/docs/Alias.md similarity index 100% rename from docs/document/Powershell/docs/Alias.md rename to docs/document/PowerShell/docs/Alias.md diff --git a/docs/document/Powershell/docs/Environment/1.Overview.md b/docs/document/PowerShell/docs/Environment/1.Overview.md similarity index 100% rename from docs/document/Powershell/docs/Environment/1.Overview.md rename to docs/document/PowerShell/docs/Environment/1.Overview.md diff --git a/docs/document/Powershell/docs/File System/1.Overview.md b/docs/document/PowerShell/docs/File System/1.Overview.md similarity index 100% rename from docs/document/Powershell/docs/File System/1.Overview.md rename to docs/document/PowerShell/docs/File System/1.Overview.md diff --git a/docs/document/Powershell/docs/File System/2.Working Directory.md b/docs/document/PowerShell/docs/File System/2.Working Directory.md similarity index 100% rename from docs/document/Powershell/docs/File System/2.Working Directory.md rename to docs/document/PowerShell/docs/File System/2.Working Directory.md diff --git a/docs/document/Powershell/docs/File System/3.Special Folders.md b/docs/document/PowerShell/docs/File System/3.Special Folders.md similarity index 100% rename from docs/document/Powershell/docs/File System/3.Special Folders.md rename to docs/document/PowerShell/docs/File System/3.Special Folders.md diff --git a/docs/document/Powershell/docs/File System/4.Create Item.md b/docs/document/PowerShell/docs/File System/4.Create Item.md similarity index 100% rename from docs/document/Powershell/docs/File System/4.Create Item.md rename to docs/document/PowerShell/docs/File System/4.Create Item.md diff --git a/docs/document/Powershell/docs/File System/5.Write to File.md b/docs/document/PowerShell/docs/File System/5.Write to File.md similarity index 100% rename from docs/document/Powershell/docs/File System/5.Write to File.md rename to docs/document/PowerShell/docs/File System/5.Write to File.md diff --git a/docs/document/Powershell/docs/File System/6.Serialization.md b/docs/document/PowerShell/docs/File System/6.Serialization.md similarity index 100% rename from docs/document/Powershell/docs/File System/6.Serialization.md rename to docs/document/PowerShell/docs/File System/6.Serialization.md diff --git a/docs/document/Powershell/docs/File System/File Size.md b/docs/document/PowerShell/docs/File System/File Size.md similarity index 100% rename from docs/document/Powershell/docs/File System/File Size.md rename to docs/document/PowerShell/docs/File System/File Size.md diff --git a/docs/document/Powershell/docs/Language/Array.md b/docs/document/PowerShell/docs/Language/Array.md similarity index 100% rename from docs/document/Powershell/docs/Language/Array.md rename to docs/document/PowerShell/docs/Language/Array.md diff --git a/docs/document/Powershell/docs/Language/Comment.md b/docs/document/PowerShell/docs/Language/Comment.md similarity index 100% rename from docs/document/Powershell/docs/Language/Comment.md rename to docs/document/PowerShell/docs/Language/Comment.md diff --git a/docs/document/Powershell/docs/Language/Control Flow.md b/docs/document/PowerShell/docs/Language/Control Flow.md similarity index 100% rename from docs/document/Powershell/docs/Language/Control Flow.md rename to docs/document/PowerShell/docs/Language/Control Flow.md diff --git a/docs/document/Powershell/docs/Language/Expression.md b/docs/document/PowerShell/docs/Language/Expression.md similarity index 100% rename from docs/document/Powershell/docs/Language/Expression.md rename to docs/document/PowerShell/docs/Language/Expression.md diff --git a/docs/document/Powershell/docs/Language/Function.md b/docs/document/PowerShell/docs/Language/Function.md similarity index 100% rename from docs/document/Powershell/docs/Language/Function.md rename to docs/document/PowerShell/docs/Language/Function.md diff --git a/docs/document/Powershell/docs/Language/HashTable.md b/docs/document/PowerShell/docs/Language/HashTable.md similarity index 100% rename from docs/document/Powershell/docs/Language/HashTable.md rename to docs/document/PowerShell/docs/Language/HashTable.md diff --git a/docs/document/Powershell/docs/Language/Invocation.md b/docs/document/PowerShell/docs/Language/Invocation.md similarity index 100% rename from docs/document/Powershell/docs/Language/Invocation.md rename to docs/document/PowerShell/docs/Language/Invocation.md diff --git a/docs/document/Powershell/docs/Language/Keyword Operators.md b/docs/document/PowerShell/docs/Language/Keyword Operators.md similarity index 100% rename from docs/document/Powershell/docs/Language/Keyword Operators.md rename to docs/document/PowerShell/docs/Language/Keyword Operators.md diff --git a/docs/document/Powershell/docs/Language/PSCustomObject.md b/docs/document/PowerShell/docs/Language/PSCustomObject.md similarity index 100% rename from docs/document/Powershell/docs/Language/PSCustomObject.md rename to docs/document/PowerShell/docs/Language/PSCustomObject.md diff --git a/docs/document/Powershell/docs/Language/Scope.md b/docs/document/PowerShell/docs/Language/Scope.md similarity index 100% rename from docs/document/Powershell/docs/Language/Scope.md rename to docs/document/PowerShell/docs/Language/Scope.md diff --git a/docs/document/Powershell/docs/Language/Script Block.md b/docs/document/PowerShell/docs/Language/Script Block.md similarity index 100% rename from docs/document/Powershell/docs/Language/Script Block.md rename to docs/document/PowerShell/docs/Language/Script Block.md diff --git a/docs/document/Powershell/docs/Language/String.md b/docs/document/PowerShell/docs/Language/String.md similarity index 100% rename from docs/document/Powershell/docs/Language/String.md rename to docs/document/PowerShell/docs/Language/String.md diff --git a/docs/document/Powershell/docs/Language/Variable.md b/docs/document/PowerShell/docs/Language/Variable.md similarity index 100% rename from docs/document/Powershell/docs/Language/Variable.md rename to docs/document/PowerShell/docs/Language/Variable.md diff --git a/docs/document/Powershell/docs/Modulization/1.Overview.md b/docs/document/PowerShell/docs/Modulization/1.Overview.md similarity index 100% rename from docs/document/Powershell/docs/Modulization/1.Overview.md rename to docs/document/PowerShell/docs/Modulization/1.Overview.md diff --git a/docs/document/Powershell/docs/Modulization/Command Conflicts.md b/docs/document/PowerShell/docs/Modulization/Command Conflicts.md similarity index 100% rename from docs/document/Powershell/docs/Modulization/Command Conflicts.md rename to docs/document/PowerShell/docs/Modulization/Command Conflicts.md diff --git a/docs/document/Powershell/docs/Modulization/Load Modules.md b/docs/document/PowerShell/docs/Modulization/Load Modules.md similarity index 100% rename from docs/document/Powershell/docs/Modulization/Load Modules.md rename to docs/document/PowerShell/docs/Modulization/Load Modules.md diff --git a/docs/document/Powershell/docs/Modulization/Modules.md b/docs/document/PowerShell/docs/Modulization/Modules.md similarity index 100% rename from docs/document/Powershell/docs/Modulization/Modules.md rename to docs/document/PowerShell/docs/Modulization/Modules.md diff --git a/docs/document/Powershell/docs/Object Manipulation/1.Overview.md b/docs/document/PowerShell/docs/Object Manipulation/1.Overview.md similarity index 100% rename from docs/document/Powershell/docs/Object Manipulation/1.Overview.md rename to docs/document/PowerShell/docs/Object Manipulation/1.Overview.md diff --git a/docs/document/Powershell/docs/Object Manipulation/Compare Objects.md b/docs/document/PowerShell/docs/Object Manipulation/Compare Objects.md similarity index 100% rename from docs/document/Powershell/docs/Object Manipulation/Compare Objects.md rename to docs/document/PowerShell/docs/Object Manipulation/Compare Objects.md diff --git a/docs/document/Powershell/docs/Object Manipulation/ETS Property.md b/docs/document/PowerShell/docs/Object Manipulation/ETS Property.md similarity index 100% rename from docs/document/Powershell/docs/Object Manipulation/ETS Property.md rename to docs/document/PowerShell/docs/Object Manipulation/ETS Property.md diff --git a/docs/document/Powershell/docs/Object Manipulation/ForEach.md b/docs/document/PowerShell/docs/Object Manipulation/ForEach.md similarity index 100% rename from docs/document/Powershell/docs/Object Manipulation/ForEach.md rename to docs/document/PowerShell/docs/Object Manipulation/ForEach.md diff --git a/docs/document/Powershell/docs/Object Manipulation/Measure.md b/docs/document/PowerShell/docs/Object Manipulation/Measure.md similarity index 100% rename from docs/document/Powershell/docs/Object Manipulation/Measure.md rename to docs/document/PowerShell/docs/Object Manipulation/Measure.md diff --git a/docs/document/Powershell/docs/Object Manipulation/Object Creation.md b/docs/document/PowerShell/docs/Object Manipulation/Object Creation.md similarity index 100% rename from docs/document/Powershell/docs/Object Manipulation/Object Creation.md rename to docs/document/PowerShell/docs/Object Manipulation/Object Creation.md diff --git a/docs/document/Powershell/docs/Object Manipulation/Object Members.md b/docs/document/PowerShell/docs/Object Manipulation/Object Members.md similarity index 100% rename from docs/document/Powershell/docs/Object Manipulation/Object Members.md rename to docs/document/PowerShell/docs/Object Manipulation/Object Members.md diff --git a/docs/document/Powershell/docs/Object Manipulation/Select.md b/docs/document/PowerShell/docs/Object Manipulation/Select.md similarity index 91% rename from docs/document/Powershell/docs/Object Manipulation/Select.md rename to docs/document/PowerShell/docs/Object Manipulation/Select.md index 6c09418f..586598d8 100644 --- a/docs/document/Powershell/docs/Object Manipulation/Select.md +++ b/docs/document/PowerShell/docs/Object Manipulation/Select.md @@ -1,7 +1,14 @@ # Select -`Select-Object` is a combination of `Select`, `Take`, `TakeLast` in dotnet LINQ. -It can be appiled on singular object and any collection. +## Overview + +- Picking composed object by one or more properties with `-Property`. + - select properties reversely by `-ExcludeProperty`. +- Picking single property value with `-ExpandProperty`. +- Take a count from start or end with `-First` or `-Last`. +- Skip a count from start or end `-Skip` or `-SkipLast`. +- Cherry-Pick one or more items by zero-based index. +- Distinct items selected from pipline. > [!TIP] > Use `select` alias for `Select-Object`. @@ -157,7 +164,7 @@ gps | select -SkipLast 5 ## Cherry Pick ```ps1 -$dir = ls -Directory +$dir = gci -Directory $dir | select -Index 1, ($dir.Length - 1) # Pick first and last item ``` diff --git a/docs/document/Powershell/docs/Object Manipulation/Sort.md b/docs/document/PowerShell/docs/Object Manipulation/Sort.md similarity index 100% rename from docs/document/Powershell/docs/Object Manipulation/Sort.md rename to docs/document/PowerShell/docs/Object Manipulation/Sort.md diff --git a/docs/document/Powershell/docs/PSDrive.md b/docs/document/PowerShell/docs/PSDrive.md similarity index 100% rename from docs/document/Powershell/docs/PSDrive.md rename to docs/document/PowerShell/docs/PSDrive.md diff --git a/docs/document/Powershell/docs/Registry/1.Overview.md b/docs/document/PowerShell/docs/Registry/1.Overview.md similarity index 100% rename from docs/document/Powershell/docs/Registry/1.Overview.md rename to docs/document/PowerShell/docs/Registry/1.Overview.md diff --git a/docs/document/Powershell/docs/Terminology.md b/docs/document/PowerShell/docs/Terminology.md similarity index 100% rename from docs/document/Powershell/docs/Terminology.md rename to docs/document/PowerShell/docs/Terminology.md diff --git a/docs/document/Powershell/docs/Type System/1.Overview.md b/docs/document/PowerShell/docs/Type System/1.Overview.md similarity index 100% rename from docs/document/Powershell/docs/Type System/1.Overview.md rename to docs/document/PowerShell/docs/Type System/1.Overview.md diff --git a/docs/document/Powershell/docs/Type System/Extended Type System.md b/docs/document/PowerShell/docs/Type System/Extended Type System.md similarity index 100% rename from docs/document/Powershell/docs/Type System/Extended Type System.md rename to docs/document/PowerShell/docs/Type System/Extended Type System.md diff --git a/docs/document/Powershell/docs/Type System/Intrinsic Members.md b/docs/document/PowerShell/docs/Type System/Intrinsic Members.md similarity index 100% rename from docs/document/Powershell/docs/Type System/Intrinsic Members.md rename to docs/document/PowerShell/docs/Type System/Intrinsic Members.md diff --git a/docs/document/Powershell/docs/Type System/Type Casting & Checking.md b/docs/document/PowerShell/docs/Type System/Type Casting & Checking.md similarity index 100% rename from docs/document/Powershell/docs/Type System/Type Casting & Checking.md rename to docs/document/PowerShell/docs/Type System/Type Casting & Checking.md diff --git a/docs/document/Powershell/docs/Understanding Pipeline.md b/docs/document/PowerShell/docs/Understanding Pipeline.md similarity index 100% rename from docs/document/Powershell/docs/Understanding Pipeline.md rename to docs/document/PowerShell/docs/Understanding Pipeline.md diff --git a/docs/services/DocumentService.ts b/docs/services/DocumentService.ts index ecb5e3e4..8ab5f204 100644 --- a/docs/services/DocumentService.ts +++ b/docs/services/DocumentService.ts @@ -28,7 +28,7 @@ export const documentMap = { Nix: { icon: '❄', description: 'Reproduce freedom' }, 'Entity Framework Core': { icon: '🗿', description: '' }, 'HTML & CSS': { icon: '😬', description: '' }, - Powershell: { icon: '🐚', description: '...' }, + PowerShell: { icon: '🐚', description: 'The first strongly-typed shell! Not bad.' }, } as const satisfies DocumentInfo; export type DocumentName = keyof typeof documentMap;