Shell解析Json字符串

parse_json(){ value=https://www.it610.com/article/`echo $1 | sed's/.*"url":\([^,}]*\).*/\1/'` echo $value | sed 's/\"//g' }用法: url=$(parse_json $s "url")


    推荐阅读