#!/bin/sh # script the names of the tables files for k in `ls t_*`; do NEW=`echo $k | sed 's/_table//'` echo "command is: mv $k $NEW" mv $k $NEW done