27 Feb
2002
27 Feb
'02
10:58
Am Tue, 26 Feb 2002 10:38:42 +0100 schrieb Lars Zimmermann
Warum so kompliziert, wenn es auch einfacher geht:
i="test" grep $i /var/log/httpd/access_log
Geht. :-)
Gruß Lars
Am Montag, 25. Februar 2002 20:45 schrieben Sie:
Hallo Liste, die Frage zuvor hat sich erledigt.
Neue Frage: server:~/test # i="test" server:~/test # cat /var/log/httpd/access_log | grep $i
geht aber auch! Bleibt die Frage warum es bei dir, Hans, nicht geht. Bei mir ist access_log auch eine Datei, mache ich aber folgendes: I="test" cat /var/log/httpd | grep $I kommt: cat: /var/log/httpd: Ist ein Verzeichnis was ja auch stimmt ...
grep: unknown directories method
Wieso funktioniert das nicht?
Hans