我有包含的文件
{"value":true,"message":"fail","timestamp":1445956265,"data":"off
"value":true,"message":"error","timestamp":1445956265,"data":"off"}
我想通过排除
{
和}
来提取大括号之间的2行以上预期输出应为
"value":true,"message":"fail","timestamp":1445956265,"data":"off
"value":true,"message":"error","timestamp":1445956265,"url":"off"
我为此使用shell脚本。怎么做...?
最佳答案
awk
awk 'sub("[{}]","")' filename
关于linux - 在打开和关闭大括号之间获取字符串,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/33384505/