Thread
:
any unix utility that determines the right extension of a file ?
View Single Post
#
9
(View Single Post)
22nd March 2013
jb_daefo
Spam Deminer
Join Date: May 2008
Posts: 303
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 13-STABLE
jb_daefo
View Public Profile
Find all posts by jb_daefo