View Single Post
  #9   (View Single Post)  
Old 22nd March 2013
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 289
Default

Code:
for f in $(find . type f ); do (mimetype "$f" | tee -a /tmp/files.mimetype); done
Works great! And one can grep the resulting file for "shellscript" to find scripts among a slew of html and jpg etc.. (Among other uses...)
__________________
FreeBSD 12.0-CURRENT
Reply With Quote