Created
January 13, 2012 12:37
-
-
Save Kagee/1605904 to your computer and use it in GitHub Desktop.
pim
This file contains hidden or 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 [ -f $1 ] | |
then | |
vim $1; | |
else | |
touch "$1" | |
chmod +x "$1" | |
echo -e "#! /usr/bin/perl\nuse strict;\n\n" > "$1"; | |
vim "$1" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment