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)
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