[SATLUG] checking for data file type and deleting (metadata search?)

twistedpickles twistedpickles at gmail.com
Fri Jun 1 14:53:17 CDT 2007


I would like to be able to find executables via some type of meta data file scan if a user changes an ext from .exe to .doc. Is this possible?

::twistedpickles :: :

message sent from mobile handset

-----Original Message-----
From: "Jonathan Hull" <masterr at gmail.com>
To: "The San Antonio Linux User's Group Mailing List" <satlug at satlug.org>
Sent: 06/01/07 2:13 PM
Subject: Re: [SATLUG] checking for data file type and deleting (metadata	search?)

'file'?

> file somefile.exe


On 6/1/07, twistedpickles <twistedpickles at gmail.com> wrote:
>
> I run this regexp to remove windows executable files from a linux
> directory server:
>
> find dir -name *.exe -ok rm '{}' \;
>
> I would like to learn how to scan for the file types. For example if a
> user changes the extension from exe to doc is there a way to figure
> out if it is an executable and then delete.
>
>
>
> --
> ::twistedPickles:: :
> --
> _______________________________________________
> SATLUG mailing list
> SATLUG at satlug.org
> http://alamo.satlug.org/mailman/listinfo/satlug to unsubscribe
> Powered by Rackspace (www.rackspace.com)
>
-- 
_______________________________________________
SATLUG mailing list
SATLUG at satlug.org
http://alamo.satlug.org/mailman/listinfo/satlug to unsubscribe
Powered by Rackspace (www.rackspace.com)



More information about the SATLUG mailing list