Extract only the first 10 lines of a csv file in powershell April 3, 2023 by Tarik Get-Content "C:\start.csv" | select -First 10 | Out-File "C:\stop.csv" That did it