Linux: Checken von Log-Dateien

Gaussian, eine Chemie-Software zur Berechnung von Molekülen, nutzt Log-Dateien,die sich einfach auch in größeren Mengen prüfen lassen:

#!/bin/bash
for i in $(ls *.log); do
 echo $i $(tail -n 1 $i)
done

Der Output sieht dann ungefähr so aus:

uwe@uwe-desktop:/desktop$ ./check_Logs 
a1_000001.log Normal termination of Gaussian 03 at Tue Apr 27 21:44:21 2010.
a1_000002.log Normal termination of Gaussian 03 at Tue Apr 27 21:41:30 2010.
a1_000003.log Normal termination of Gaussian 03 at Tue Apr 27 21:55:34 2010.

Uwe

Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined. Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.

More Posts - Website