🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1633

Re: Beware xargs security holes

#1633
From: Blair P. Houghton
Date: Sat, 27 Oct 1990 05:49
11 lines
796 bytes
In article <john.656921455@troch> john@sco.COM (John R. MacMillan) writes:
>
>find / -name '#*' -print | xargs patok '.*/#[^/]*' rm -f --
>
>where patok elimnates arguments that don't match the pattern.
>[patok] shouldn't be too hard to write.

find / -name '#*' -print | egrep -v '.*/#[^/]*' | xargs rm -f --

				--Blair
				  "Took longer to type."
Technical Details
Message-ID: <649@inews.intel.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!usc!sdd.hp.com!decwrl!orc!inews!cmdnfs!bhoughto
References: <1890@necisa.ho.necisa.oz> <1990Oct24.0100 <john.656921455@troch>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!usc!sdd.hp.com!decwrl!orc!inews!cmdnfs!bhoughto
From: bhoughto@cmdnfs.intel.com (Blair P. Houghton)
Newsgroups: comp.unix.shell
Subject: Re: Beware xargs security holes
Message-ID: <649@inews.intel.com>
Date: 27 Oct 90 05:49:52 GMT
References: <1890@necisa.ho.necisa.oz> <1990Oct24.0100 <john.656921455@troch>
Sender: news@inews.intel.com
Organization: Intel Corp, Chandler, AZ
Lines: 11