title: Simple bash script that lists all extensions
body: <p>I'm looking for a linux bash script that does the following: it takes as input a folder and it outputs all extensions appearing in that folder.</p>
  
  <p>For example
      Script's input: path of folder containing 3 mp3 files and 2 pngs.
      Script's output: "mp3, png"</p>