Created
July 31, 2015 05:37
-
-
Save poshcodebear/d6c9f789dc7de6ebb217 to your computer and use it in GitHub Desktop.
Removing the first or last lines from a text file - Sample 1
This file contains 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
$test = Get-Content .\test.txt | |
$output = $test[0..($test.count - 2)] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment