On Wednesday 08 October 2003 12:10, Colin Watson wrote: > On Wed, Oct 08, 2003 at 10:04:01AM +0000, Adam wrote: >> On Wednesday 08 October 2003 08:00, Lukas Ruf wrote:
(1) >> > find <path> -type f | xargs chmod 0644 >> >> I would have come up with >> (2) >> find PATH -type f -exec chmod 0644 '{}' ';' >> >> Is the version with xargs better, and how? > > The version with xargs is much better: it runs a single instance of > chmod with all the files (or as many as will fit) as arguments, rather > than running a separate instance of chmod for every file. So version (1) involves only three processes: find, xargs, chmod; whereas version (2) spawns find and then a chmod process for every file that matches -- is that right? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]