xuyinan503
2015-11-27 23:32:47 +08:00
xuyinan@xuyinan:~$ cat test.txt
[
{"ip_port": "11.12.13.14:80", "user_pass": ""},
{"ip_port": "11.12.13.14:80", "user_pass": ""},
{"ip_port": "11.12.13.14:80", "user_pass": ""}
]
xuyinan@xuyinan:~$ cat test.txt|sed 's/},\s]/}\n]/'
[
{"ip_port": "11.12.13.14:80", "user_pass": ""},
{"ip_port": "11.12.13.14:80", "user_pass": ""},
{"ip_port": "11.12.13.14:80", "user_pass": ""}
]
xuyinan@xuyinan:~$