Re: Writing files with formatted name

2015-02-09 Thread Karl E. Jorgensen
Hi On Mon, Feb 09, 2015 at 03:02:07PM -0500, Roman Gelfand wrote: > would writing synchronized java class using the same algorithm solve the race > problem? Java is a bit overkill for that :-) Atomic locking is available in the shell too - man flock ... > > Thanks > > On Fri, Feb 6, 2015 at 1

Re: Writing files with formatted name

2015-02-09 Thread Roman Gelfand
would writing synchronized java class using the same algorithm solve the race problem? Thanks On Fri, Feb 6, 2015 at 12:12 PM, Roman Gelfand wrote: > I need to write files with name format {5 digit sequential > number}.{extension I will supply}. > > Is there a utility which would allow me to co

Re: Writing files with formatted name

2015-02-06 Thread Alexis
Roman Gelfand writes: I need to write files with name format {5 digit sequential number}.{extension I will supply}. Is there a utility which would allow me to copy/move/put a file with the above name format incrementing the sequence for each subsequent file. Something similar to what logro

Re: Writing files with formatted name

2015-02-06 Thread Darac Marjal
On Fri, Feb 06, 2015 at 12:12:45PM -0500, Roman Gelfand wrote: >I need to write files with name format {5 digit sequential >number}.{extension I will supply}. >Is there a utility which would allow me to copy/move/put a file with the >above name format incrementing the sequence for e

Writing files with formatted name

2015-02-06 Thread Roman Gelfand
I need to write files with name format {5 digit sequential number}.{extension I will supply}. Is there a utility which would allow me to copy/move/put a file with the above name format incrementing the sequence for each subsequent file. Something similar to what logrotate is doing. Tlhanks in adv