Tagged: sh

About linux : Define-variable-in-AWK

Question Detail I am trying to mention varaibel in AWK. I try a few I used to use earlier, but can’t figureout where I am doing wrong… cat tld.csv co.uk com code while read...

About linux : uuid-is-required-install-util-linux

Question Detail I am trying to rebuild the VLC for tizen, I stuck with this error on ubuntu checking for UUID… no checking where uuid functions comes from… configure: error: *** uuid is required....

About linux : how-to-fetch-a-selected-value-from-a-text-file-using-a-shell-script

Question Detail I have a file which looks like this (myfile.txt) {“projectStatus”:{“status”:”ERROR”,”conditions”:[{“status”:”ERROR”,”metricKey”:”new_bugs”,”comparator”:”GT”,”periodIndex”:1,”errorThreshold”:”0″,”actualValue”:”2″}, {“status”:”ERROR”,”metricKey”:”new_reliability_rating”,”comparator”:”GT”,”periodIndex”:1,”errorThreshold”:”1″,”actualValue”:”3″}, {“status”:”ERROR”,”metricKey”:”new_security_rating”,”comparator”:”GT”,”periodIndex”:1,”errorThreshold”:”1″,”actualValue”:”2″}, {“status”:”OK”,”metricKey”:”new_maintainability_rating”,”comparator”:”GT”,”periodIndex”:1,”errorThreshold”:”1″,”actualValue”:”1″}, {“status”:”ERROR”,”metricKey”:”new_code_smells”,”comparator”:”GT”,”periodIndex”:1,”errorThreshold”:”0″,”actualValue”:”17″}, {“status”:”ERROR”,”metricKey”:”new_vulnerabilities”,”comparator”:”GT”,”periodIndex”:1,”errorThreshold”:”0″,”actualValue”:”2″}, {“status”:”ERROR”,”metricKey”:”coverage”,”comparator”:”LT”,”errorThreshold”:”90″,”actualValue”:”80.3″}, {“status”:”ERROR”,”metricKey”:”new_coverage”,”comparator”:”LT”,”periodIndex”:1,”errorThreshold”:”90″,”actualValue”:”7.826086956521739″}], “periods”:[{“index”:1,”mode”:”previous_version”,”date”:”2021-11-04T14:47:41+0000″}],”ignoredConditions”:false}} I have to pick “actualValue”:”7.826086956521739″ which is with “metricKey”:”new_coverage” then expected output is (actualValue)...