#!/bin/sh for f in *.fw; do j=${f}.orig mv $f $j done for f in *.conf; do j=${f}.orig mv $f $j done