Skip to content

Instantly share code, notes, and snippets.

@enolikingdev
Created June 10, 2022 09:18
Show Gist options
  • Select an option

  • Save enolikingdev/99e86db78f0e8bc590e1a5c831b673eb to your computer and use it in GitHub Desktop.

Select an option

Save enolikingdev/99e86db78f0e8bc590e1a5c831b673eb to your computer and use it in GitHub Desktop.
#!/bin/sh
jq -r --arg node $2 'map(if .[$node]|type == "string" then .[$node] |= fromjson else . end)' $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment