[SATLUG] checking for data file type and deleting (metadata
search?)
Gabriel Cornyn
gabriel.cornyn at gmail.com
Fri Jun 1 20:39:23 CDT 2007
I'm certain there is a cleaner way to do this, but it appears to work
for me. Sorry it took so long.
file `find . -type f` | awk '{if ($2=="DOS") print $1}' | tr -d : | xargs rm
Just replace . with your directory of preference, and if you aren't
copying and pasting, make sure you know what are the backticks and
what are the quotes.
You er.. may want to test it works before you deploy it. :-)
More information about the SATLUG
mailing list