Skip to main content

I have json with something like this: "number":"OK","number":OK""number":"OK","number":OK" repeated over 100multiple times in one line.

My simple "OK" counter:

sed "s|,|\n|g" response | grep -c OKsed "s|,|\n|g" response | grep -c OK

I have json with something like this: "number":"OK","number":OK" repeated over 100 times in one line.

My simple "OK" counter:

sed "s|,|\n|g" response | grep -c OK

I have json with something like this: "number":"OK","number":OK" repeated multiple times in one line.

My simple "OK" counter:

sed "s|,|\n|g" response | grep -c OK

Source Link

I have json with something like this: "number":"OK","number":OK" repeated over 100 times in one line.

My simple "OK" counter:

sed "s|,|\n|g" response | grep -c OK