#!/bin/sh list=`find . -name '*.cpp' | sed 's/\.cpp$//'` for i in $list; do mv ${i}.cpp ${i}.cc done