bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in csplit


From: Andreas Schwab
Subject: Re: Bug in csplit
Date: Fri, 31 Aug 2007 14:17:56 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux)

Bhagya <address@hidden> 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, address@hidden
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."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]