PowerShell: Get File Content
Print File Content
Get-Content myfile
# print first 50 lines of file Get-Content myfile | select -first 50
# print last 50 lines of file Get-Content myfile | select -last 50
for scripting use, see PowerShell: Read File
PowerShell. Working on Files
- PowerShell: Copy File
- PowerShell: Rename File
- PowerShell: Move File
- PowerShell: Delete File
- PowerShell: Create New File
- PowerShell: Create File Symbolic Link, Hard Link, Junction
- PowerShell: Get File Content
- PowerShell: Join Files
- PowerShell: Compare Files (Show Difference)
- PowerShell: Open File by Default App
- PowerShell: File Date Time