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 10000 {\} {}-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 10000 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