[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: netpbm vs. pbmplus

On Fri, 26 Jan 1996, Craig Sanders wrote:

> e.g. here's the output of 'dpkg -L par', a small package to serve as an
> example:
> /.
> /usr
> /usr/doc
> /usr/doc/copyright
> /usr/doc/copyright/par
> /usr/doc/par
> /usr/doc/par/par.doc
> /usr/bin
> /usr/bin/par
> Which lines are the directories?  What algorithm do you use to identify
> them?

Sorry to but in here Craig...
Because of the way/reasons the lines are created, the algorith is simple:

If a line is followed by a line that is the same, except for an 
additional path element, that line is a path, otherwise the last element 
of the line is a file.

In the above example the file par is found in /usr/doc/copyright/ and 
/usr/bin/; and the file par.doc is found in /usr/doc/par/. All of the 
other lines are paths.

Ok, now, what was the question again?


------------                                          --------------

aka   Dale Scheetz                   Phone:   1 (904) 877-0257
      Flexible Software              Fax:     NONE 
      Black Creek Critters           e-mail:  dwarf@polaris.net

------------ If you don't see what you want, just ask --------------

Reply to: