#!/bin/bash # File: new_java.sh # Date: 28 Feb 2012 # Author: Jason Charney (jrcharneyATgmailDOTcom) # Info: Create a new java file #TODO: Don't create a new file if the file already exist F=${1}.java # Full file name with path if [ ! -e "$F" ]; then d=$(date "+%e %b %Y") # File date f=${1##*/} # File name. Strip out the path c=${f#.java} # Class name. Strip out the extension cat > $F <