bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-execdir command {} + executes one command per file


From: Yuri Kanivetsky
Subject: -execdir command {} + executes one command per file
Date: Fri, 26 Jul 2013 01:06:56 +0300
User-agent: Opera Mail/12.14 (Win32)

Hi,

I recently realized that -execdir {} + passes one match at a time to a command to be executed, or so it seems:


$ touch 1 2 3
$ ls
1  2  3
$ find -execdir echo {} +
./.
./2
./3
./1
$ find --version
find (GNU findutils) 4.4.2
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Built using GNU gnulib version e5573b1bad88bfabcda181b9e0125fb0c52b7d3b
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS() CBO(level=0)
$ bash --version
GNU bash, version 4.2.45(2)-release (x86_64-unknown-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


Am I missing something?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]