shell编程随手记录

获取json返回值

json=$(curl ...)

echo $json


字符串替换

sed -i "s/\(\".*.\"\)/$access_token/g" *.txt

sed -i 's/[\t]//g' *.txt

你可能感兴趣的:(shell编程随手记录)