Bhagya <[EMAIL PROTECTED]> writes:

> csplit abc.txt 5 -f abccc -b %02d.txt
>
> File abc.txt is an ascii file with 24 records as below
> aaaaaaaaa,ddddddddddddd,ggggggggg,hhhhhhhhh
> aaaaaaaaa,ddddddddddddd,ggggggggg,hhhhhhhhh
> aaaaaaaaa,ddddddddddddd,ggggggggg,hhhhhhhhh
> aaaaaaaaa,ddddddddddddd,ggggggggg,hhhhhhhhh
>
> The above command gave two files as abccc00.txt and abccc01.txt
> abccc00.txt had 4 records and abccc01.txt had 20 records
>
>
> I was expecting to get 6 split files.

There is only one pattern, which instructs to split off until line 5.
There is no pattern for the rest of the input, so it is dumped into the
second file.

Andreas.

-- 
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to