> > > My definition of parsable input means I can write a script like
> > > this in sh:
> > >
> > > dladm -o state,over | while read a b; do
> > > echo "a=$a,b=$b"
> > > done
> >
> > That works, just set IFS=|
>
> Yes, and maybe you'd like to provide a complete example so that
> it can be compared with the simplicity of what I presented above.
Here's your example, with the missing show-link subcommand and parsable
option flag added:
dladm show-link -o state,over -p | while IFS='|' read a b; do
echo "a=$a,b=$b"
done
--
meem