Last active
August 11, 2018 15:07
-
-
Save jacoblockard99/b6575018c434632d96a96520af58c45e to your computer and use it in GitHub Desktop.
A script to find files and run them with vim.
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
#!/bin/bash | |
if [[ $1 = -* ]] | |
then | |
echo "Finding files by $1..." | |
find . $1 $2 -exec vim {} \; | |
else | |
echo "Finding files by name..." | |
find . -name $1 -exec vim {} \; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment