Skip to content

Instantly share code, notes, and snippets.

@zmpeg
Created December 3, 2012 15:48
Show Gist options
  • Save zmpeg/4195873 to your computer and use it in GitHub Desktop.
Save zmpeg/4195873 to your computer and use it in GitHub Desktop.
Script to recursively grep for files in WebObjects and print their locations nicely.
#!/bin/sh
for A in `grep -r "$1" | awk '{print $1}' | grep html`; do basename $A; done | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment