Beware xargs security holes

Blair P. Houghton bhoughto at cmdnfs.intel.com
Sat Oct 27 15:49:52 AEST 1990


In article <john.656921455 at troch> john at 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."



More information about the Comp.unix.shell mailing list