On Sat, Feb 09, 2002 at 02:48:36PM -0200, Antonio Alberto Lobato wrote: > # find /var/log -type f -exec echo -n > {} \; > Why find create a file called "{}", instead to erase files contents
That's proper behavior. The "> {}" goes to your shell (creating that file), so the arguments left for find are: "/var/log -type f -exec echo -n" (yet another implementation of the NOP command). Try echo >/tmp/blankfile && find /var/log -type f -exec cp /tmp/blankfile {} \; instead. -- Johannes Franken Professional unix/network development mailto:[EMAIL PROTECTED] http://www.jfranken.de/