#!/bin/sh if [ "$1" = "" ]; then echo 'Name?' exit 1 fi N=`echo $1 | sed -e 's/\.rb//'` cat > test-$N.rb <