Viewing a response to: @l0k1/draft-list-of-all-api-calls-within-the-steem-codebase
> find steem|grep api\.cpp$|xargs cat|grep api\:\:|grep -v ASSERT|grep -v '^ '|grep -v '^/'|sed 's/ / /g'|sed 's/ / /g'|sed 's/^ //g' Just for fun, thought I'd take a swipe at removing some of the pipelines. I think this is more or less the same thing... find steem -name \*api.cpp -exec sed -n '/ASSERT/ d;/^\// d;/^ / d;s/ */ /g;/api\:\:/ p' {} \;
author | remlaps |
---|---|
permlink | re-l0k1-draft-list-of-all-api-calls-within-the-steem-codebase-20170402t014908712z |
category | dawn-network |
json_metadata | {"tags":["dawn-network"],"app":"steemit/0.1"} |
created | 2017-04-02 01:49:12 |
last_update | 2017-04-02 01:49:12 |
depth | 1 |
children | 1 |
last_payout | 2017-04-09 01:49:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 358 |
author_reputation | 33,149,047,814,372 |
root_title | "Draft list of all API calls within the Steem codebase" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,920,878 |
net_rshares | 158,067,730,310 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
l0k1 | 0 | 158,067,730,310 | 100% |
btw, two of the functions get chopped out of the code, one of them has a very long parameter list one to a line, and another one with a break. I used `grep \($` to isolate them so I could manually add their parameters. Yeah, so many pipes is just an easy way to build up the correct substitutions and filters bit by bit until you have the right lines coming out.
author | l0k1 |
---|---|
permlink | re-remlaps-re-l0k1-draft-list-of-all-api-calls-within-the-steem-codebase-20170402t085900970z |
category | dawn-network |
json_metadata | {"tags":["dawn-network"],"app":"steemit/0.1"} |
created | 2017-04-02 08:59:03 |
last_update | 2017-04-02 09:00:00 |
depth | 2 |
children | 0 |
last_payout | 2017-04-09 08:59:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 363 |
author_reputation | 94,800,257,230,993 |
root_title | "Draft list of all API calls within the Steem codebase" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 2,922,453 |
net_rshares | 13,620,273,736 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
remlaps | 0 | 13,620,273,736 | 100% |