txt 파일 자르기 (Powershell)
2024. 6. 4. 11:04ㆍ카테고리 없음
https://gildongmoo92.tistory.com/98
윈도우에서 대용량 텍스트 파일 분할 저장 (with. 파워쉘)
가끔 개발을 하다보면 운영 로그가 너무 큰데 확인할 방법이 없다. 이럴때 파일을 분할해서 저장하면 빠르게 확인이 가능하다. 아래는 파워쉘에서 파일을 분할 하는 방법을 설명한다. [구문] $i=0
gildongmoo92.tistory.com
$i=0; Get-Content .\test.txt -ReadCount 1000 | %{ $i++; $_ | Out-File output-$i.txt; Write-Host $i }