#!/bin/bash # Created by Ben Okopnik on Mon Apr 28 11:41:01 EDT 2008 # Enter your name here; otherwise, your login name will be used name="" [ -z "$1" ] && { printf "Usage: $0 \n"; exit; } [ -f "$1" ] && { printf "File already exists!\n"; exit; } printf "#!`which perl` -w\n" > $1 printf "# Created by ${name:-$USER} on `date`\nuse strict;\n\n\n" >> $1 chmod +x $1 vi + $1 #### map :set filetype=perl:set kp=perldoc\ -f:0:-r!which perlI#!$a -wo# Created by Ben Okopnik on^[:r!date-J^iuse strict; map :w:![ -x "%:p" ]\|\|chmod +x "%:p":!"%:p"