Show Navigation
Douglas A. Whitfield (musicman@nu.federati.net)'s status on Thursday, 16-May-2019 01:12:02 UTC
-
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