7 Mar
2007
7 Mar
'07
16:01
On Wednesday 07 March 2007 03:12, Philippe Andersson wrote:
Gordon Ross wrote: ...
$ find DHbox* -name "*.dat" -o -name "*.pro" -exec rm -f {} \;
would do. Omit the final "-exec..." to first check that it only catches those files you want to get rid of.
If there are very many such files, execing a separate rm for each will be slow. The "|xargs rm" approach only invokes as many rm instances as it takes to handle the number of arguments present. It also frees you from the funky find -exec syntax, which many find confusing.
HTH
Cheers. Bye.
Ph. A.
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org