bug#17904: issue with split command

2014-07-09 Thread jayaprakash.vambara
Hi All,

After some investigation, I found that inspite of me giving a size 
specification as +1000, it is taking 500 as default and in this due course, it 
has deleted some files which were over 500KB.

I am able to resolve the issue now.

Thank You,
V. Jayaprakash




-Original Message-
From: Bernhard Voelker [mailto:m...@bernhard-voelker.de] 
Sent: 03 July 2014 08:13
To: Vambara, Jayaprakash; 17...@debbugs.gnu.org
Subject: Re: bug#17904: issue with split command

tags 17904 + moreinfo
stop

On 07/02/2014 11:16 PM, jayaprakash.vamb...@essent.nl wrote:
 Hello,
 
 I am using split command to split a large file and later I am renaming file. 
 PFB command.
 
 find . -size +1000 -exec split -l 1 {\} {}-new \; find . -type f  
 -name *new* -exec mv {} {}.list \;
 
 However, this is giving correct result sometimes and other times :
 while creating files, the file with name ending newaa is missing 
 .(This would be the first file output while splitting)

Thanks for the bug report.
However, TBH I don't see a problem here (... other than later file names 
possibly clashing the earlier produced *new* files; I reported that to the 
main coreutils list separately).

 For ex:
 If I split a file named sample of size 1100 KB and with 25000 lines. If I 
 run the above query:
 
 Sometimes the result is:

Can you please explain what you mean by sometimes here?
Is this related to certain files (where you could reproduce with a standalone 
split -l 1 file file-new run)?

 Samplenewaa.list
 Samplenewab.list
 Samplenewac.list
 
 But other times,only:
 Samplenewab.list
 Samplenewac.list
 
 Can you please look into this and let me know if this is a bug or if I am 
 doing something wrong.
 
 Thank You,

Can you please try to narrow the test case down to the file where the aa file 
is missing? Both split(1) and mv(1) have the --verbose option which could help 
finding the cause.

Thanks  have a nice day,
Berny







bug#17904: issue with split command

2014-07-09 Thread Bernhard Voelker

tag 17904 notabug
close 17904
stop

On 07/09/2014 04:46 PM, jayaprakash.vamb...@essent.nl wrote:

I am able to resolve the issue now.


Thanks for the update.
I'm hereby closing the bug in our bug tracker.

Have a nice day,
Berny






bug#17904: issue with split command

2014-07-04 Thread jayaprakash.vambara

Hi Andreas,

PFB means please find below :-) (sorry for the confusing acronym)

Well, as far as splitting it to separate folder is concerned, I am sure the 
newly created files can never be more than 1000KB. Usually the split up files 
are around 250KB - 300KB in size.

Thank You,
V. Jayaprakash

-Original Message-
From: Andreas Schwab [mailto:sch...@linux-m68k.org] 
Sent: 03 July 2014 18:41
To: Vambara, Jayaprakash
Cc: 17...@debbugs.gnu.org
Subject: Re: bug#17904: issue with split command

jayaprakash.vamb...@essent.nl writes:

 I am using split command to split a large file and later I am renaming file. 
 PFB command.

What does PFB mean?

 find . -size +1000 -exec split -l 1 {\} {}-new \;

This may find the newly created files, splitting them again if any of the 
produced files is bigger then 1000 bytes.  You should produce the output in a 
separate directory not located below the current one.

Andreas.

--
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5 And 
now for something completely different.







bug#17904: issue with split command

2014-07-04 Thread Andreas Schwab
jayaprakash.vamb...@essent.nl writes:

 Well, as far as splitting it to separate folder is concerned, I am sure the 
 newly created files can never be more than 1000KB. Usually the split up files 
 are around 250KB - 300KB in size.

The default unit for -size is actually 512 bytes, thus the limit is
500KB.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#17904: issue with split command

2014-07-03 Thread Bernhard Voelker
tags 17904 + moreinfo
stop

On 07/02/2014 11:16 PM, jayaprakash.vamb...@essent.nl wrote:
 Hello,
 
 I am using split command to split a large file and later I am renaming file. 
 PFB command.
 
 find . -size +1000 -exec split -l 1 {\} {}-new \;
 find . -type f  -name *new* -exec mv {} {}.list \;
 
 However, this is giving correct result sometimes and other times :
 while creating files, the file with name ending newaa is missing .(This would 
 be the first file output while splitting)

Thanks for the bug report.
However, TBH I don't see a problem here (... other than later file
names possibly clashing the earlier produced *new* files; I reported
that to the main coreutils list separately).

 For ex:
 If I split a file named sample of size 1100 KB and with 25000 lines. If I 
 run the above query:
 
 Sometimes the result is:

Can you please explain what you mean by sometimes here?
Is this related to certain files (where you could reproduce with
a standalone split -l 1 file file-new run)?

 Samplenewaa.list
 Samplenewab.list
 Samplenewac.list
 
 But other times,only:
 Samplenewab.list
 Samplenewac.list
 
 Can you please look into this and let me know if this is a bug or if I am 
 doing something wrong.
 
 Thank You,

Can you please try to narrow the test case down to the file where
the aa file is missing? Both split(1) and mv(1) have the --verbose
option which could help finding the cause.

Thanks  have a nice day,
Berny





bug#17904: issue with split command

2014-07-03 Thread Andreas Schwab
jayaprakash.vamb...@essent.nl writes:

 I am using split command to split a large file and later I am renaming file. 
 PFB command.

What does PFB mean?

 find . -size +1000 -exec split -l 1 {\} {}-new \;

This may find the newly created files, splitting them again if any of
the produced files is bigger then 1000 bytes.  You should produce the
output in a separate directory not located below the current one.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
And now for something completely different.





bug#17904: issue with split command

2014-07-02 Thread jayaprakash.vambara
Hello,

I am using split command to split a large file and later I am renaming file. 
PFB command.

find . -size +1000 -exec split -l 1 {\} {}-new \;
find . -type f  -name *new* -exec mv {} {}.list \;

However, this is giving correct result sometimes and other times :
while creating files, the file with name ending newaa is missing .(This would 
be the first file output while splitting)

For ex:
If I split a file named sample of size 1100 KB and with 25000 lines. If I run 
the above query:

Sometimes the result is:
Samplenewaa.list
Samplenewab.list
Samplenewac.list

But other times,only:
Samplenewab.list
Samplenewac.list

Can you please look into this and let me know if this is a bug or if I am doing 
something wrong.

Thank You,

Met vriendelijke groet / With Kind Regards,
V. Jayaprakash
+31684606944