🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1668

Re: Beware xargs security holes

#1668
From: Alex Martelli
Date: Mon, 29 Oct 1990 09:15
13 lines
1056 bytes
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).
Technical Details
Message-ID: <303@cadlab.sublink.ORG>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!att!rutgers!deejay!gear!cadlab!staff
References: <1990Oct24.0100 <john.656921455@troch> <649@inews.intel.com> <653@inews.intel.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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 <john.656921455@troch> <649@inews.intel.com> <653@inews.intel.com>
Organization: CAD.LAB, Bologna, Italia
Lines: 13