bug-coreutils
[Top][All Lists]
Advanced

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

Re: Bug in csplit


From: Eric Blake
Subject: Re: Bug in csplit
Date: Fri, 31 Aug 2007 06:20:58 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Bhagya on 8/31/2007 2:27 AM:
> Hi,
> 
> I have installed the package GNUCoreUtils using coreutils-5.3.0.exe.

Consider upgrading.  The latest stable version of coreutils is 6.9, and
has bug fixes that may improve your experience.  Since you appear to be
using a Windows compilation, you may be interested in the cygwin project,
which has a more up-to-date pre-compiled version available.

> When I was checking with the csplit command with the below example, i found
> a bug
> 
> csplit abc.txt 5 -f abccc -b %02d.txt
> 
> The above command gave two files as abccc00.txt and abccc01.txt
> abccc00.txt had 4 records and abccc01.txt had 20 records

Not a bug - you told csplit to stop at line 5.  What you appear to want is
a repeat count, as in:

csplit -f abccc -b %02d.txt -- abc.txt 5 '{*}'

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG2Aeq84KuGfSFAYARAkLWAKCDqeb+WthLVMW21LDophqnQSggtACePUfm
IOkThFbZi7HrsXj820HPC3s=
=7cW4
-----END PGP SIGNATURE-----




reply via email to

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