Sublime Text, open files found with grep

To open files found with grep in Sublime Text, run the following command

subl $(grep -irl "search for text" .)


 
Where

i = case insensitive
r = recursive
l = only file names

Be sure to include the l flag, otherwise you'll open a bunch of new files with no relation to what you're doing.

ABOUT THE AUTHOR

Anthony Leon

Author has no description.

NO COMMENTS

Leave a comment

Your email is never published or shared.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>