Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
pim
#! /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