| To: | yyyyyyyyyyyyyy@xxxxxxxxxxxxx, yyyyyy@xxxxxxxxxxx |
|---|---|
| Subject: | Re: find + xargs |
| From: | yyyyyyyyy@xxxxxxxxxxxx |
| Date: | Sat, 24 Mar 2001 09:17:16 +0100 (MET) |
>From: Paul Eggert <yyyyyy@xxxxxxxxxxx>
>> From: yyy@xxxxxxxxxxx (Geoff Clare)
>> Date: Fri, 23 Mar 2001 17:20:26 +0000
>>
>> The other existing solution is an extension to "find" to make it do
>> the argument aggregation internally, so xargs is not needed:
>>
>> find . -type f -exec some_command {} +
>>
>> Here the use of "+" instead of ";" as the command terminator causes
>> find to substitute sets of pathnames for "{}" instead of single
>> pathnames. I believe this works on all SVR4-derived systems.
>It doesn't work on Solaris 8, at least not for me. Also, it is not a
>pure extension, since it invalidates conforming commands like this:
It is not in the man page but it works just fine on Solaris 8
Maybe you have problems with your shell?
burner jes > find . -exec echo 'HERE IS ECHO' {} +
prints e.g.:
HERE IS ECHO . ./s.Makefile ./s.calltree.c ./s.clex.c ./s.clex.h ./s.keyw.c
./s.stream.c ./s.stream.h ./s.string.c ./s.sym.c ./s.sym.h ./s.defs.h
./s.strsubs.h ./s.calltree.1
>find . -type f -exec echo + {} ';'
This looks strange..
Jörg
EMail:yyyyy@xxxxxxxxxxxxxxxxxxxxxxxxxxx (home) Jörg Schilling D-13353 Berlin
yy@xxxxxxxxxxxxxxx (uni) If you don't have iso-8859-1
yyyyyyyyy@xxxxxxxxxxxx (work) chars I am J"org Schilling
URL: http://www.fokus.gmd.de/usr/schilling ftp://ftp.fokus.gmd.de/pub/unix
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Interpretations window closing, Andrew Josey |
|---|---|
| Next by Date: | Re: Using terms from ISO C (was: Minutes from todays teleconference), Clive D.W. Feather |
| Previous by Thread: | Re: find + xargs, Keith Bostic |
| Next by Thread: | Re: find + xargs, Paul Eggert |
| Indexes: | [Date] [Thread] [All Lists] |