7/26/2011 ~ 1 min read

Show filename and linenumber


When searching for files in a bash shell, show the file and line that was matched: find . -name *.js -print0 | xargs -0 grep -n -H set_up_uploadify This could be rolled into a custom script with file type and arg1 and pattern as arg2.


Headshot of Matthew Hippely

Hi, I’m Matthew. I live in Ventura County, and spend my time thinking about systems, software, and how things evolve over time.

You can find me on GitHub, LinkedIn, or read more about me here.