On Tue, Aug 17, 2010 at 2:56 PM, Nikhilesh S <s.nikhil...@gmail.com> wrote: > On Tue, 17 Aug 2010, Suraj Kurapati wrote: > >> uuidgen(1) for the win. > > I don't see why they should be univrsally unique - just unique within > the input file should do. All that is required is adding an additional > integer 'id' field to the 'item' struct, using that as the id instead, > and using 'lowest unused whole number id' for generating new ids.
Oh, I forgot flo was a C program. I was thinking it was a shell script, in which case, I would argue that it is the UNIX way to invoke specialized tools --- such as uuidgen --- that do the job rather than reinventing logic poorly in your shell script. :)