有个日志文件如下:
1 2 3 4 5 | // demo.log "time":"2017","id":"AA2342ds34234","content":"asdfasdfafwerfasdf" "time":"2017","content":"asdfasdfafwerfasdf","id":"AAd234s234234" "time":"2017","id":"AA23as423d4234","content":"asdfasdfafwerfasdf" "id":"BB234234234","content":"asdfasdfafwerfasdf","time":"2017" |
我想只输出id的值:
例如这样
1 2 3 4 | AA2342ds34234 AAd234s234234 AA23as423d4234 BB234234234 |
有类似功能的的命令有awk, gawk,sed, grep等,看了半天也没找到我想要的这种功能的示例。
请问有什么命令可以提取,麻烦给个例子,谢谢