Add PowerShell command to get large files

This commit is contained in:
James Skemp 2022-07-04 14:16:31 -05:00
parent 5d976fe81e
commit de3ee6046a
1 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,11 @@ List all files with a particular extension in the current directory and its chil
Get-ChildItem -Path .\ -Filter *.sln -Recurse -File | Select Fullname | Sort-Object Fullname
```
List the 10 largest files in the current directory and subdirectories.
```powershell
gci -r | sort Length -desc | select @{n="Length";e={$_.length}}, fullname -f 10
```
Search Files.ps1
```powershell
Get-ChildItem -Recurse -Include *.item | select-string "<term>"