sean finney on 2 Jul 2009 23:26:47 -0700 |
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 ___________________________________________________________________________ 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
|
|