How to make csplit start outputing files with filenames starting from 001?
0
votes
1
answer
1107
views
I use csplit to divide a complex file named
.docked.pdb
to small files.
csplit -k -s -n 3 -f file.docked. file.docked.pdb '/^ENDMDL/+1' '{'7'}'
csplit
explains the following the code perfectly
NAME
csplit - split a file into sections determined by context lines
-k, --keep-files
do not remove output files on errors
-s, --quiet, --silent
do not print counts of output file sizes
-n, --digits=DIGITS
use specified number of digits instead of 2
-f, --prefix=PREFIX
use PREFIX instead of 'xx'
Each PATTERN may be:
/REGEXP/[OFFSET]
copy up to but not including a matching line
{*} repeat the previous pattern as many times as possible
My doubt is that the output files are starting to be named from .docked.000
and extending forward
How to make the numbering start from .docked.001
???
If the tooling does not support this at all, please give a workaround.
Asked by Praveen Kumar-M
(622 rep)
May 31, 2020, 03:55 PM
Last activity: Jun 1, 2020, 02:08 AM
Last activity: Jun 1, 2020, 02:08 AM