1.取json文件的某个字段的值 grep -Po 'filedname[" :]+\K[^"]+' filename | grep -Po 'token[" :]+\K[^"]+' token.txt