Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

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

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.