Last active
October 2, 2018 20:05
-
-
Save jkbryan/87f23080e5916f7bd191c0d85c6617c4 to your computer and use it in GitHub Desktop.
powershell-sort-files
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
$Path = "<PathToWhereYourOutputFilesAre>" | |
$SortPath = "<PathToYourSortedFiles>" | |
$AllGroups = get-childitem $Path | |
ForEach ($Group in $AllGroups) | |
{ | |
Write-Host $Group | |
$GroupFile=Get-Content $Path\$Group | sort-object | Out-File -Filepath $SortPath\$Group | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment