- 论坛徽章:
- 0
|
需要处理的文本如下:
ProfileVo(id: number, createdAt: number, updatedAt: number, ownerId: number, predefined: boolean, jsonType: string, name: string, description: string, externalRadiusServerOption: string, entries: array[object], entryIds: array[number])
想要得到的结果:
HmExternalRadiusProfileVo(
id: number,
createdAt: number,
updatedAt: number,
ownerId: number,
predefined: boolean,
jsonType: string,
name: string,
description: string,
externalRadiusServerOption: string,
entries: array[object],
entryIds: array[number])
我知道:
sed "s/,/,\\n/g" test.txt sed "s/(/(\\n/g" test.txt 这两条命令同时执行的结果就是我想要的了,请问这两条能否合并成一条?
如果能请兄弟给出来,先谢了!!! |
|