Federati Nu: Federated N-series GNU Social
  • Login
It's "All Of Us For All Of Us" Or We're On Our Own
  • Public

    • Public
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Douglas A. Whitfield (musicman@nu.federati.net)'s status on Thursday, 16-May-2019 01:12:02 UTC Douglas A. Whitfield Douglas A. Whitfield
    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
    In conversation Thursday, 16-May-2019 01:12:02 UTC from web permalink
    • Douglas A. Whitfield (musicman@nu.federati.net)'s status on Thursday, 16-May-2019 01:14:15 UTC Douglas A. Whitfield Douglas A. Whitfield
      in reply to
      and yes, I know I published the secret. It's a sandbox and I rotated it anyway
      In conversation Thursday, 16-May-2019 01:14:15 UTC permalink
    • Douglas A. Whitfield (musicman@nu.federati.net)'s status on Thursday, 16-May-2019 01:16:36 UTC Douglas A. Whitfield Douglas A. Whitfield
      in reply to
      I have discovered a simpler solution
      In conversation Thursday, 16-May-2019 01:16:36 UTC permalink
    • Douglas A. Whitfield (musicman@nu.federati.net)'s status on Thursday, 16-May-2019 01:17:37 UTC Douglas A. Whitfield Douglas A. Whitfield
      in reply to
      wait, no I didn't. I solved a different issue. this issue remains
      In conversation Thursday, 16-May-2019 01:17:37 UTC permalink
    • Douglas A. Whitfield (musicman@nu.federati.net)'s status on Thursday, 16-May-2019 01:18:55 UTC Douglas A. Whitfield Douglas A. Whitfield
      in reply to
      although, there may well be better way to write this loop. Gotta write a loop regardless
      In conversation Thursday, 16-May-2019 01:18:55 UTC permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Federati Nu: Federated N-series GNU Social is a social network, courtesy of Federati Networks. It runs on GNU social, version 2.0.0-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Federati Nu: Federated N-series GNU Social content and data are available under the Creative Commons Attribution 3.0 license.

Switch to mobile site layout.