[SATLUG] checking for data file type and deleting (metadata
search?)
Jonathan Hull
masterr at gmail.com
Fri Jun 1 14:13:17 CDT 2007
'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)
>
More information about the SATLUG
mailing list