Danek Duvall wrote: > On Thu, Nov 01, 2007 at 11:59:46PM -0400, Bill Sommerfeld wrote: [snip] > As you'll probably note from the result of this, it's really not suitable > for processing with your favorite shell tools, though it can be done.
Could you post a sample output, please ? > We'll have a parseable format at some point, but even then it's either > likely to be the manifest format or XML (which may be one and the same), > and you're still not going to like doing anything with it in shell. (/me > ignores ksh93 the wunder-shell for the moment.) What about (as one output option, AFAIK we would need XML and something more easily parseable) using a compound-variable style output format, e.g. something like... -- snip -- xxx=() xxx.name="foo" xxx.chicken="cooked" xxx.misc=() xxx.misc.feathers=1023801 xxx.misc.eatable=true -- snip -- ... (the var=() is needed to create a node). If you ignore the ()-stuff the output should be easily be parseable (and you can use grep/egrep/fgrep for filtering) and AFAIK both "perl" and "ksh93" can accept it directly as input (BTW: Encoding needs to be the current locale (and not UTF8), otherwise you'll ending-up in the same hell as the svcprop consumers currently reside in (see [EMAIL PROTECTED] for that discussion...)... ;-( ). On demand I can create a standalone library to create such an output (including UTF-8 to multibyte transformation (and escape of characters which cannot be represented in the current multibyte locale (this part needs to be written anyway for SMF soon... ;-( ))). ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) [EMAIL PROTECTED] \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 7950090 (;O/ \/ \O;) _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
