(Apologies if this is a duplicate - been mucking about with email server settings.)


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 FreeBSD, you'll need to use the -f option to specify the fields you want to include. Here's how you can do it:

lastlogin -f field1,field2,... --libxo xml,pretty




Replace field1, field2, etc., with the specific fields you want to include in the output. For example, if you want to include fields like username, terminal, and login time, you would specify something like this:

lastlogin -f username,terminal,login_time --libxo xml,pretty


This command will generate XML output with the specified fields in a pretty format. Adjust the field names as per your requirements.



Let us know if that works?


/ChatGPT

_______________________________________________
Semibug mailing list
Semibug@lists.nycbug.org
https://lists.nycbug.org:8443/mailman/listinfo/semibug

Reply via email to