# use a for loop to rename all files while copying them
> for file in app/services/*.coffee; do
> cp -a $file ${file%%.coffee*}.js
> done
# Explanation: The %%-* will cut off all the characters after the first
# occurence of '.coffee' and the .js at the end again adds the file
# extension