在一个巨大的文件,我有口号码,如查找和替换使用仅在字符串中号和第3号SED
"port": "7733",
"port": "7734",
"port": "7631",
"port": "7833",
"port": "7835",
"port": "7335",
"port": "9834",
我只需要更换(仅第3号)3 5使用SED。预期的结果应该是像
"port": "7753",
"port": "7754",
"port": "7651",
"port": "7853",
"port": "7855",
"port": "7355",
"port": "9854",
我已经试过
sed -E 's/[0-9][0-9]3[0-9]+/[0-9][0-9]5[0-9]/g'
但是这将取代所有的数字[0-9] [0-9] 5 [0-9]。
请让我知道如何才能达到使用的sed