Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Apr 2001 19:10:24 +0200
From:      "Karsten W. Rohrbach" <karsten@rohrbach.de>
To:        Brian Somers <brian@Awfulhak.org>
Cc:        Dima Dorfman <dima@unixfreak.org>, Garance A Drosihn <drosih@rpi.edu>, "John W. De Boskey" <jwd@bsdwins.com>, Current List <freebsd-current@FreeBSD.ORG>
Subject:   Re: cp -d dir patch for review (or 'xargs'?)
Message-ID:  <20010422191024.A92712@mail.webmonster.de>
In-Reply-To: <200104201029.f3KATF533872@hak.lan.Awfulhak.org>; from brian@Awfulhak.org on Fri, Apr 20, 2001 at 11:29:15AM %2B0100
References:  <dima@unixfreak.org> <200104201029.f3KATF533872@hak.lan.Awfulhak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Brian Somers(brian@Awfulhak.org)@2001.04.20 11:29:15 +0000:
>   find something | xargs cp {} target_directory
> 
> or
> 
>   find something | xargs -i '[]' cp '[]' target_directory
> 
or
    find something -exec cp {} target_directory \;

from find(1):
    -exec utility [argument ...];
	True if the program named utility returns a zero value as its ex-
	it status.  Optional arguments may be passed to the utility.  The
	expression must be terminated by a semicolon (``;'').  If the
	string ``{}'' appears anywhere in the utility name or the argu-
	ments it is replaced by the pathname of the current file.
	Utility will be executed from the directory from which find was
	executed.

/k

-- 
> who | grep -i blonde | date; cd ~; unzip; touch; finger; mount;\
> gasp; yes; uptime; umount; sleep
KR433/KR11-RIPE -- http://www.webmonster.de -- ftp://ftp.webmonster.de
[Key] [KeyID---] [Created-] [Fingerprint-------------------------------------]
GnuPG 0x2964BF46 2001-03-15 42F9 9FFF 50D4 2F38 DBEE  DF22 3340 4F4E 2964 BF46

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010422191024.A92712>