28th April, 2013

Open all files of a type in Sublime Text 2

The following command will open all .py files in the current directory or subdirectories in sublime.

find . -name "*.py" -exec sublime {} \;

It also assumes sublime is on your path. You may need to change sublime to /Applications/Sublime\ Text.app if you're on a Mac.

 

The opinions expressed here are my own and not those of my employer.