Skip to content

Instantly share code, notes, and snippets.

@johshoff
Created September 14, 2012 10:53
Show Gist options
  • Save johshoff/3721280 to your computer and use it in GitHub Desktop.
Save johshoff/3721280 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Example usage:
#
# foreach '*.cs' grep foo
find . -iname "$1" -print0 | xargs -0 ${@:2}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment