Re: [Python-de] Von der Shell zu Python
Stefan Schwarzer wrote:
On 2015-04-12 10:18, Thomas 'PointedEars' Lahn wrote:
Welche „Art der Auswertung“ ist Deiner Meinung nach mit Python einfacher als mit awk, welche schwieriger?
Ich dachte dabei zum Beispiel an komplexere statistische Auswertungen, die man gern mit NumPy oder Pandas erledigen möchte. Allgemein kann man bei der Auswertung mit Python ja auf alle möglichen Bibliotheken zurückgreifen. Zum Beispiel könnte jemand Daten aus Logdateien mit Daten aus anderen Quellen (beispielsweise aus einer Datenbank oder von einem AMQP-Server) kombinieren.
Einfachere Auswertungen wie das Summieren von übertragenen Bytes aus HTTP-Requests aus einem Apache-HTTPD-Logfile dürften wiederum mit Awk einfacher sein, weil die in Awk eingebauten mathematischen Möglichkeiten dafür völlig ausreichen. Viele kleinere Sachen lassen sich prima mit einer Pipe mit einem Awk-Einzeiler erledigen.
ACK, danke. -- PointedEars Twitter: @PointedEars2 Please do not cc me. / Bitte keine Kopien per E-Mail.
participants (1)
-
Thomas 'PointedEars' Lahn