Created
March 22, 2011 23:18
-
-
Save parndt/882306 to your computer and use it in GitHub Desktop.
Useful unix functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find files recursively in/under the current directory | |
function findin() | |
{ | |
find . -exec grep $@ '{}' \; -print | |
} | |
# Rails 2 and Rails 3 console | |
function rc { | |
if [ -e "./script/console" ]; then | |
./script/console $@ | |
else | |
rails console $@ | |
fi | |
} | |
# Rails 2 and Rails 3 server | |
function rs { | |
if [ -e "./script/server" ]; then | |
./script/server $@ | |
else | |
rails server $@ | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment