Mailinglist Archive: opensuse-de (4664 mails)

< Previous Next >
Re: find und tar
  • From: René Matthäi <matthaei@xxxxxx>
  • Date: Mon, 09 Feb 2004 11:44:54 +0100
  • Message-id: <402764A6.8040803@xxxxxx>
Hi,

Matthias Dort schrieb:

hier ist meine Kommando-Zeile:

find dir1 dir2 dir3 -name "*.c" -mtime +7 | tar cvf /tmp/c.tar -

Sie funktioniert aber nicht. Wo kann der Fehler sein?

Ich vermute mal ins Blaue, dass tar so die Standardausgabe verpackt, also die mittels find gefundenen Dateinamen (also nur ein Bisschen Text). Vielleicht geht es mit

find dir1 dir2 dir3 -name "*.c" -mtime +7 | xargs tar cvf /tmp/c.tar



--
Registered Linux User #324404
< Previous Next >
Follow Ups
References