Versuch, eine Protokolldatei mit dem folgenden Beispielinhalt zu tail -f
.Beenden einer JSON-Protokolldatei mit printf-ähnlicher Ausgabe
{"name":"common","hostname":"kgilbert-mac.corp.realpage.com","pid":65184,"level":30,"msg":"iOT API listening at http://[::]:8080","time":"2017-01-11T00:20:26.359Z","v":0}
{"name":"common","hostname":"kgilbert-mac.corp.realpage.com","pid":65185,"level":30,"msg":"iOT API listening at http://[::]:8080","time":"2017-01-11T00:20:28.942Z","v":0}
{"name":"common","hostname":"kgilbert-mac.corp.realpage.com","pid":65187,"level":30,"msg":"iOT API listening at http://[::]:8080","time":"2017-01-11T00:20:30.221Z","v":0}
Jedoch habe ich die Ausgabe des Schwanzes möchte nicht das tatsächliche JSON-String in jeder Zeile sein, aber ein printf und begrenzte Version davon.
Also vielleicht so etwas wie dieses
name: common | hostname: localhost | pid: 65187 | level: 30 | msg: iOT API listening at http://[::]:8080 | time: 2017-01-11T00:20:30.221Z