Conversation
Notices
-
This gives me the output I want as a starter
curl -X POST https://sandbox.plaid.com/institutions/get -H 'Content-Type: application/json' -d '{
"client_id": "5cc312cee54277001312d232",
"secret": "fc3906bc934b52a10df62c11f0e94e",
"count": 500,
"offset": 50000
}' 2>&1 | grep 77
100 203 100 77 100 126 255 418 --:--:-- --:--:-- --:--:-- 674
Then though, I want the 4th column. It seems like awk is performing the operation on the initial output, not the grepped output, as seen below.
Any tips?
d@zareason:~/quickstart/python$ curl -X POST https://sandbox.plaid.com/institutions/get -H 'Content-Type: application/json' -d '{
"client_id": "5cc312cee54277001312d232",
"secret": "fc3906bc934b52a10df62c11f0e94e",
"count": 500,
"offset": 50000
}' 2>&1 | grep 77 | awk '{print $4}'
0
d@zareason:~/quickstart/python$ curl -X POST https://sandbox.plaid.com/institutions/get -H 'Content-Type: application/json' -d '{
"client_id": "5cc312cee54277001312d232",
"secret": "fc3906bc934b52a10df62c11f0e94e",
"count": 500,
"offset": 50000
}' 2>&1 | grep 77 | awk '{print $5}'
0
d@zareason:~/quickstart/python$ curl -X POST https://sandbox.plaid.com/institutions/get -H 'Content-Type: application/json' -d '{
"client_id": "5cc312cee54277001312d232",
"secret": "fc3906bc934b52a10df62c11f0e94e",
"count": 500,
"offset": 50000
}' 2>&1 | awk '{print $5}'
%
Left
0
-
and yes, I know I published the secret. It's a sandbox and I rotated it anyway
-
I have discovered a simpler solution
-
wait, no I didn't. I solved a different issue. this issue remains
-
although, there may well be better way to write this loop. Gotta write a loop regardless