Hacker News new | ask | show | jobs
by resoluteteeth 1693 days ago
If you have an index for the locate command it's probably easier to do:

locate "/coa/package.json" | xargs -I {} jq .version {} 2>/dev/null

1 comments

maybe print the command (`-t`) xargs executes, to make identification easier.
It's sort of a moot point since if you have an affected version you have to assume your whole system is compromised anyway in the case of this type of issue.