#!/bin/bash api_key="2165c23beeefb43294144565ebd198f11018673352" #api_key api_token="ffe10497bdf584cda150fba861341283661026723" #api_token # project="cc" #projectId url="http://showdoc.seagine.com/server/?s=/api/open/fromComments" # mockurl="http://mock.seagine.com/api/fromComment" path=`grep -rl "\/\*\*" ./server/routes` for i in ${path} do txt=$(sed -n -e '/\/\*\*/,/\*\//p' $i) curl -s -o /dev/null -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' "${url}" --data-binary @- <