[GTALUG] Comparing XML/JSON files

Ansar Mohammed ansarm at gmail.com
Mon Dec 6 19:09:08 EST 2021


you can use powershell for Linux. this capability is built in

On Mon, Dec 6, 2021 at 3:48 PM William Park via talk <talk at gtalug.org>
wrote:

> Hi all,
>
> I know of "xmldiff" and "jsondiff" to compare XML or JSON files.  But,
> they don't allow me to exclude certain node or keyword.  Do you know any
> command line program that does that, in one-shot?
>
> If not, then I have to resort to
>      1. For JSON, use 'jq' to remove keyword, and then compare.
>      2. For XML, use 'xmlstarlet' to remove node, and then compare.
>
> --William
> ---
> Post to this mailing list talk at gtalug.org
> Unsubscribe from this mailing list
> https://gtalug.org/mailman/listinfo/talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/talk/attachments/20211206/5b4a4688/attachment.html>


More information about the talk mailing list