I just want to get the files from the current dir and only output .mp4 .mp3 .exe files nothing else. So I thought I could just do this:
ls | grep \\.mp4$ | g
For OSX users:
If you use ls *.{mp3,exe,mp4}, it will throw an error if one of those extensions has no results.
ls *.{mp3,exe,mp4}
Using ls *.(mp3|exe|mp4) will return all files matching those extensions, even if one of the extensions had 0 results.
ls *.(mp3|exe|mp4)