Re: Leerzeichen/Dateinamen in Shellscripts

From: Oliver Fromme <olli(at)secnetix.de>
Date: Sat, 3 Aug 2002 11:45:08 +0200 (CEST)

Simon 'corecode' Schubert <corecode(at)corecode.ath.cx> wrote:
> On Fri, 2 Aug 2002 20:40:33 +0200 (CEST) Oliver Fromme wrote:
> > Hmm, bei genauerem Hindenken fällt mir jetzt auf, daß das
> > ganze eigentlich auch mit cpio geht (kommt allerdings
> > nicht mit Newlines in Dateinamen zurecht):
>
> und mit -0?
> find . -maxdepth 1 -name '[!~ ]*' -print0 | cpio -dump0 Zielverzeichnis

Oh, tatsächlich, ich wußte nicht, daß cpio diese Option
ebenfalls kennt. Ist natürlich nicht portabel (aber das
ist es bei xargs auch nicht).

Gruß
   Olli

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"All that we see or seem is just a dream within a dream" (E. A. Poe)
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Sat 03 Aug 2002 - 11:45:16 CEST

search this site