[OpenAFS-devel] bos listusers NPERLINE

John Hascall john@iastate.edu
Mon, 19 Mar 2007 14:11:42 CDT



> > So anyone against deleting this "feature" better come with a good
> > argument which I can't smash with "you should use awk for that".
> 
> IIRC, some vi's have a line length limit.
> I can't use awk to interactively edit the file.
> 
> I'd actually argue that if we change this, it should be the other way, and 
> each identity should be on its own line.
> 
> While the code that's there is arbitrary, why should it be changed at all? 
> any UserList utilities anyone writes has to accept the presence of both 
> spaces and newlines as separators due to all the existing files out there...

Dare I suggest:
   bos listusers -nperline #             [default 10]

:)

BTW, if you are writing scripts to process it, getting
rid of newlines is trivial:

#!/bin/sh
server=$1
blu=`bos listusers $server`
echo $blu

and kiss your newlines goodbye...


John