#!/bin/bash for i in ./.??*; do ext=${i##*.} mv $i $ext done