Say I have some files
simple_doc.txt document.pdf website.html
.txt file opens with textEdit by default, the
.html file will open in Google Chrome.
How can I find out this information from the command line? In particular, how can I find the icon of the default application for each of these files from the command line alone.