[oclug] Programming wars output formatting questions

Chris Nolan chris.nolan at pointforce.com
Thu Mar 22 18:49:03 EST 2001


A couple of questions about the formatting of the output of the 'tree'
program

	When using the -s option, you want the byte count displayed in []'s
before the file name.  It looks like in your example you've padded the
number out to 9 places.  Do you want that for all, or do you just want a
single space in front of the #?

	I guess you want the last entry in a directory to be the "`--"
instead of the "|--", is that correct?

Chris Nolan

> > Now let's see some other ones in there, too!  The info about the
> > challenge can be found at:
> >
> >   http://www.oclug.on.ca/archives/oclug/2001-March/003791.html
> 
> Excellent!  I'd really like to see someone do this in C, sh, java, and
> anything else too.
> 
> Cheers,
> Vic



More information about the OCLUG mailing list