Last active
March 23, 2021 09:37
-
-
Save zaqmor/52176857e632ea58b33fa39d1ddaec24 to your computer and use it in GitHub Desktop.
Powershell: Reverse text file lines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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