The csplit is a Unix command thats split a file into two or more smaller files determined by context lines.
Questions tagged [csplit]
62 questions
-1
votes
2 answers
What csplit-like command lets me create several files from one text file?
Are there any tools to do what I want already? I'd like to split the file 'one' at lines starting with @, followed by a filename:
$ cat one
@header
-- header --
@body
-- body --
@body isn't a split point
@footer
-- footer --
$ splitit one
$…

effbiae
- 1,087
- 1
- 7
- 22
-2
votes
2 answers
How to select section in regular expression in linux commands
I have these lines that every line begin a word then equal and several sentence so I like select every section. For example:
delete = \account
user\
admin
admin right is good.
add = \
nothing
…

user6920966
- 23
- 8