Search code examples
macosfilehidden

How to show SPECIFIC hidden files on mac?


Such as by file extension?

For instance, I don't want to see .DS_STORE files, but I want to see all .htaccess files. Is there a way to do this?


Solution

  • Open a terminal and type

     ls -a | grep -G .YOUR_EXTENSION$
    

    See http://www.robelle.com/smugbook/regexpr.html for more information of regex Also man grep and man ls will be of use