You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
352 B

3 years ago
  1. set -e
  2. for f in tx*.yml; do
  3. echo f: $f
  4. #cat $f | sed -e "s/$/%0a/g" | curl -s -X POST http://127.0.0.1:8089/api/0.0/istxvalid -d @-
  5. cat $f | json_xs -f yaml | grep -v 'null' | curl -s -X POST http://127.0.0.1:8089/api/0.0/settx -d @-
  6. echo ''
  7. done
  8. for f in tx*.json; do
  9. cat $f | curl -s -X POST http://127.0.0.1:8089/api/0.0/settx -d @-
  10. echo ''
  11. done