Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@simme
Created October 25, 2010 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simme/645076 to your computer and use it in GitHub Desktop.
Save simme/645076 to your computer and use it in GitHub Desktop.
Small bash function for opening a set of files in mate based on a search pattern
#!/usr/bin/env bash
# Usage: fm nameoffile.php
# Searches the current dir you're in
function fm {
find . -name "$1" -exec mate {} \;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment