Path: utzoo!utgpu!watserv1!watmath!att!att!rutgers!deejay!gear!cadlab!staff From: staff@cadlab.sublink.ORG (Alex Martelli) Newsgroups: comp.unix.shell Subject: Re: Beware xargs security holes Message-ID: <303@cadlab.sublink.ORG> Date: 29 Oct 90 09:15:00 GMT References: <1990Oct24.0100 <649@inews.intel.com> <653@inews.intel.com> Organization: CAD.LAB, Bologna, Italia Lines: 13 bhoughto@cmdnfs.intel.com (Blair P. Houghton) writes: ... >>find / -name '#*' -print | egrep -v '.*/#[^/]*' | xargs rm -f -- >Lose the -v, dimwit. Won't "egrep '/#'" pass EXACTLY the same lines as "egrep '.*/#[^/]*'"??? After all, it's not as if the RE had to match ALL of the incoming line! Yours for simpler, more regular expression of Regular Expressions... -- Alex Martelli - CAD.LAB s.p.a., v. Stalingrado 45, Bologna, Italia Email: (work:) staff@cadlab.sublink.org, (home:) alex@am.sublink.org Phone: (work:) ++39 (51) 371099, (home:) ++39 (51) 250434; Fax: ++39 (51) 366964 (work only), Fidonet: 332/401.3 (home only).