2018-05-04 快速查找alta系统对指定渠道回调失败的url并再次回调

function altaposterror(){
pushd /export/webapps/php.com/logs/actionlog
nname=$1
grep -r -i -n "${nname}" *|tr -s '[' '\n'|tr -s ']' '\n'|grep "${nname}"|sort|uniq > /export/postback_${nname}.txt

while read urlstr; do urlstr2=$(echo "$urlstr"); echo "$urlstr2"; \curl -k -L "$urlstr2"; done < /export/postback_${nname}.txt;

}

你可能感兴趣的:(2018-05-04 快速查找alta系统对指定渠道回调失败的url并再次回调)