sean finney on 2 Jul 2009 23:26:47 -0700


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

Re: [PLUG] add symlink to directory with find -name -exec {} \;


On Thu, Jul 02, 2009 at 03:39:17PM -0400, JP Vossen wrote:
> And, my way doesn't always work.  xargs works great when the results 
> from find can be strung out as arguments to your command.  That would be 
> a disaster with something like the mv or cp commands though.  When in 
> doubt, add an echo and test:
> 	find -name script_name -print0 | xargs -0 echo chmod 200

then you can throw -n1 at xargs :) there's also -i (which gives use
 of {} as a replacement template) if you have a fairly complicated
command syntax.


	sean

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug