Ubuntu file 2개로 분리하기
2025. 4. 12. 17:47ㆍOS
Line 기준
head -n 5000 yourfile.log > part1.log
tail -n +5001 yourfile.log > part2.log
Size 기준
split -n 2 yourfile.log part
'OS' 카테고리의 다른 글
Ubuntu memory 확인 (0) | 2025.04.13 |
---|---|
Ubuntu 이전 reboot 원인 찾기 (0) | 2025.04.12 |
Ubuntu 먹통 되었을 때 (0) | 2025.04.12 |
ubuntu 미할당 disk 용량 할당하기 (0) | 2025.04.08 |
ubuntu sed replace에서 변수 적용하기 (0) | 2025.04.05 |