Re: [Semibug] Need an example of libxo usage

2024-04-15 Thread Mike Wayne
On Sat, Apr 13, 2024 at 08:48:41AM -0700, ad...@bclug.ca wrote: > Mike Wayne wrote on 2024-04-12 15:55: > > I think JSON should do it via `jq`. Any idea what package jq might be in? Never heard of it. > printf "%s last login %s from %s\n" $(lastlogin --libxo json | jq -r

[Semibug] Need an example of libxo usage

2024-04-12 Thread Mike Wayne
Trying to correct some of the stupid that FreeBSD 13 did, I'm failing to get libxo to work. I ran lastlogin with the xml option to get the keys: % lastlogin --libxo xml,pretty wayne wayne pts/1 192.168.63.146 Fri Apr 12 15:06:16 2024 What I can

Re: [Semibug] Need an example of libxo usage

2024-04-12 Thread Mike Wayne
On Fri, Apr 12, 2024 at 01:21:58PM -0700, Ron / BCLUG wrote: > Mike Wayne wrote on 2024-04-12 12:57: > > > What I can not figure out is how to select fields to print. > > To customize the output fields for the lastlogin command using libxo > with XML formatting in FreeBS