[Ilugc] .a-tip-a-day. xargs command
- From: knura@xxxxxxxxx (Arun Khan)
- Date: Mon Sep 21 14:36:34 2009
On Monday 21 Sep 2009, balachandar muruganantham wrote:
for find, which has a exec by default. not need to use xargs
You can also remove all .svn files like this.
find . -type d -name .svn -exec rm -rf {} \;
True, but each 'exec' forks a sub shell to execute the command passed to
it, whereas with xargs it is only one sub shell i.e. the command and
the target which comes from the find command.
--
Arun Khan
Other related posts: