SyntaxFix
Write A Post
Hire A Developer
Questions
skip` didn't work, so my workaround is
$LinesCount = $(get-content $file).Count get-content $file | select -Last $($LinesCount-1) | set-content "$file-temp" move "$file-temp" $file -Force