4 ms·
Not for finding filenames, but for finding files containing stuff, there's the magical `grep` ! Probably my most used command for finding stuff in a massive leg
by mmazing 5y ago
Not for finding filenames, but for finding files containing stuff, there's the magical `grep` ! Probably my most used command for finding stuff in a massive legacy codebase.
grep --include='*.js' -rn methodName
will recursively search the current directory and all subdirectories for .js files containing the word 'methodName'
Obviously IDEs can do this as well, but since you can supply regex, you can get some pretty complicated cases.
Random arbitrary example but difficult to do with an IDE -
grep --include='*.js' -rn methodName\([^,]*,[^,]*,[^,]\*\)
same as above, but only find methods with 3 arguments