Skip to content

Instantly share code, notes, and snippets.

@zaqmor
Last active March 23, 2021 09:37
Show Gist options
  • Save zaqmor/52176857e632ea58b33fa39d1ddaec24 to your computer and use it in GitHub Desktop.
Save zaqmor/52176857e632ea58b33fa39d1ddaec24 to your computer and use it in GitHub Desktop.
Powershell: Reverse text file lines
$x = Get-Content -Path .\the\path.txt; Set-Content -Path .\the\path.txt -Value ($x[($x.Length-1)..0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment