Quoting David L. Nicol (david@kasey.umkc.edu): > -- > David Nicol 816.235.1187 nicold@umkc.edu > find / -name core|perl -ne'chomp;unlink' perl -e '$bad="/tmp/\n/etc/passwd\n/core"; foreach (split m[/], $bad) { mkdir($a.="/$_", 0755); }' find /tmp -name core /tmp/ /etc/passwd /core Be afraid. Be very afraid. In the interests of not getting hundreds of irate emails, if you ran the above, now run this: perl -e '$bad="/tmp/\n/etc/passwd\n/core"; 1 while (rmdir($bad) && $bad =~ s[/[^/]+$][]);' preferably before your nightly /tmp cleanup destroys your system. Not as root though, or it might delete /tmp (slight bug there). Anyone for golf? -- Adam Rice -- wysiwyg@glympton.airtime.co.uk -- Blackburn, Lancashire, England ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe