리눅스 csplit

1 개요[ | ]

리눅스 csplit
/usr/bin/csplit
  • 파일의 행 내용에 따라 부분파일로 분리하는 리눅스 명령어

2 실습[ | ]

[root@zetawiki ~]# cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
[root@zetawiki ~]# csplit /etc/my.cnf /mysqld_safe/
171
80
[root@zetawiki ~]# cat xx00
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
[root@zetawiki ~]# cat xx01
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}