Csplit
Csplit
| 운영 체제 | 유닉스 및 유닉스 계열 |
|---|---|
| 플랫폼 | 크로스 플랫폼 |
| 종류 | 명령어 |
| 라이선스 | GNU GPL v3 |
csplit은 문맥 행에 따라 파일을 두 개 이상의 더 작은 파일로 분할하기 위한 셸 명령어이다. 이 명령어는 유닉스 및 유닉스 계열 운영체제에서 일반적으로 사용할 수 있다.
이 명령어는 1987년 제2판 이후 X/Open 이식성 가이드의 일부이다. 이 명령어는 POSIX의 첫 번째 버전과 Single Unix Specification에 계승되었다.[1] 이 명령어는 PWB UNIX에서 처음 등장했다.[2] GNU 코어 유틸리티 버전은 스튜어트 켐프와 데이비드 매켄지가 작성했다.[3] 이 명령어는 UnxUtils를 통해 윈도우에서도 사용할 수 있다.[4]
사용법
명령줄 인자는 옵션, 파일 경로, 패턴 목록으로 구성된다.
각 패턴은 줄 번호 또는 정규 표현식이다. 프로그램은 패턴으로 구분된 파일 조각을 xx00, xx01 등의 파일로 출력하고, 각 조각의 크기를 바이트 단위로 표준 출력에 출력한다.
split과의 비교
split 명령어 또한 파일을 여러 조각으로 분할하지만, 조각의 크기가 행이나 바이트 단위로 고정되어 있다는 점이 다르다.
같이 보기
각주
더 읽어보기
- Ellen Siever, Aaron Weber, Stephen Figgins, Robert Love, Arnold Robbins, et al. Linux in a Nutshell, 5th Edition. O'Reilly Media: July 2005. ISBN 978-0-596-00930-4.
외부 링크
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.